Skip to content

Commit

Permalink
Fix wrong query for clearing 6-hour old sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
pattmax00 committed Apr 6, 2023
1 parent f18f512 commit 8e4c5e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8e4c5e3

Please sign in to comment.