Skip to content

Commit

Permalink
fix: cast expiry_date as datetime for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
kroucher committed Sep 9, 2024
1 parent 4c52ec3 commit 12a5900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlx-store/src/sqlite_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl ExpiredDeletion for SqliteStore {
let query = format!(
r#"
delete from {table_name}
where expiry_date < datetime('now', 'utc')
WHERE datetime(expiry_date) < datetime('now')
"#,
table_name = self.table_name
);
Expand Down

0 comments on commit 12a5900

Please sign in to comment.