mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
delete old webxdc status updates during housekeeping
This commit is contained in:
11
src/sql.rs
11
src/sql.rs
@@ -755,6 +755,17 @@ pub async fn housekeeping(context: &Context) -> Result<()> {
|
|||||||
.log_err(context)
|
.log_err(context)
|
||||||
.ok();
|
.ok();
|
||||||
|
|
||||||
|
context
|
||||||
|
.sql
|
||||||
|
.execute(
|
||||||
|
"DELETE FROM msgs_status_updates WHERE msg_id NOT IN (SELECT id FROM msgs)",
|
||||||
|
(),
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.context("failed to remove old webxdc status updates")
|
||||||
|
.log_err(context)
|
||||||
|
.ok();
|
||||||
|
|
||||||
info!(context, "Housekeeping done.");
|
info!(context, "Housekeeping done.");
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user