Merge branch 'dev' into feature/blog

This commit is contained in:
ari melody 2025-07-18 23:47:41 +01:00
commit 31a02a12a5
Signed by: ari
GPG key ID: 60B5F0386E3DDB7E
3 changed files with 12 additions and 1 deletions

View file

@ -188,3 +188,7 @@ func DeleteSession(db *sqlx.DB, token string) error {
return err
}
func DeleteExpiredSessions(db *sqlx.DB) error {
_, err := db.Exec("DELETE FROM session WHERE expires_at<current_timestamp")
return err
}