Fix wrong query for clearing 6-hour old sessions

This commit is contained in:
max 2023-04-06 09:35:53 -05:00
parent f18f512fea
commit 8e4c5e3268

View File

@ -139,7 +139,7 @@ func ScheduledSessionCleanup(app *app.App) {
}
// Delete sessions older than 6 hours
_, err = app.Db.Exec(deleteSessionsOlderThan30Days)
_, err = app.Db.Exec(deleteSessionsOlderThan6Hours)
if err != nil {
log.Println("Error deleting 6 hour expired sessions from database")
log.Println(err)