From a3b088cc5c0215b44ddbd719da95e058f1ca37cb Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 24 Jun 2024 08:06:00 -0600 Subject: [PATCH] sqlite/sessions: fix typo in query ... that prevent sessions from being expired --- src/sqlite/configrepo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlite/configrepo.rs b/src/sqlite/configrepo.rs index 3137f316..e5fe1f7d 100644 --- a/src/sqlite/configrepo.rs +++ b/src/sqlite/configrepo.rs @@ -159,7 +159,7 @@ impl ConfigRepo { async fn expire_sessions(&self) -> Result { 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?;