assets + fmt
Some checks failed
CI / Check / Test (push) Has been cancelled

This commit is contained in:
2026-06-03 01:13:06 +02:00
parent 8cabc6af70
commit e8e83d3f16
17 changed files with 44 additions and 95 deletions

View File

@@ -215,13 +215,12 @@ impl WrapUpRepository for SqliteWrapUpRepository {
before: chrono::NaiveDateTime,
) -> Result<u64, DomainError> {
let before_str = before.format("%Y-%m-%dT%H:%M:%SZ").to_string();
let result = sqlx::query(
"DELETE FROM wrap_up_records WHERE status = 'failed' AND created_at < ?",
)
.bind(&before_str)
.execute(&self.pool)
.await
.map_err(map_err)?;
let result =
sqlx::query("DELETE FROM wrap_up_records WHERE status = 'failed' AND created_at < ?")
.bind(&before_str)
.execute(&self.pool)
.await
.map_err(map_err)?;
Ok(result.rows_affected())
}
}