Fix wrong query for clearing 6-hour old sessions
This commit is contained in:
parent
f18f512fea
commit
8e4c5e3268
@ -139,7 +139,7 @@ func ScheduledSessionCleanup(app *app.App) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Delete sessions older than 6 hours
|
// Delete sessions older than 6 hours
|
||||||
_, err = app.Db.Exec(deleteSessionsOlderThan30Days)
|
_, err = app.Db.Exec(deleteSessionsOlderThan6Hours)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("Error deleting 6 hour expired sessions from database")
|
log.Println("Error deleting 6 hour expired sessions from database")
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user