Skip to content

Commit

Permalink
sqlite/sessions: fix typo in query
Browse files Browse the repository at this point in the history
... that prevent sessions from being expired
  • Loading branch information
jasonish committed Jun 24, 2024
1 parent c580f65 commit a3b088c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sqlite/configrepo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl ConfigRepo {

async fn expire_sessions(&self) -> Result<u64, ConfigRepoError> {
let now = DateTime::now().to_seconds();
let result = sqlx::query("DELETE FROM sessions WHERE expires AT < ?")
let result = sqlx::query("DELETE FROM sessions WHERE expires_at < ?")
.bind(now)
.execute(&self.pool)
.await?;
Expand Down

0 comments on commit a3b088c

Please sign in to comment.