summaryrefslogtreecommitdiff
path: root/src/expire.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/expire.rs')
-rw-r--r--src/expire.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expire.rs b/src/expire.rs
index eaedc44..1427a8d 100644
--- a/src/expire.rs
+++ b/src/expire.rs
@@ -16,6 +16,8 @@ pub async fn middleware(
app.tokens().expire(&expired_at).await?;
app.invites().expire(&expired_at).await?;
app.messages().expire(&expired_at).await?;
+ app.messages().purge(&expired_at).await?;
app.channels().expire(&expired_at).await?;
+ app.channels().purge(&expired_at).await?;
Ok(next.run(req).await)
}