Skip to content

Commit

Permalink
sun-tasks. fix missing single quote
Browse files Browse the repository at this point in the history
  • Loading branch information
edospadoni committed Nov 5, 2021
1 parent c95751b commit 649fdad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sun/sun-tasks/tasks/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ func Init(action string, worker bool) {

func cleanAuths() {
db := database.Instance()
db.Where("updated < ? AND type = 'login", time.Now().AddDate(0, 0, -1).UTC()).Delete(models.DaemonAuth{})
db.Where("updated < ? AND type = 'login'", time.Now().AddDate(0, 0, -1).UTC()).Delete(models.DaemonAuth{})
}

func cleanTokens() {
db := database.Instance()
db.Where("expires < ? AND type = 'login", time.Now().UTC()).Delete(models.AccessToken{})
db.Where("expires < ? AND type = 'login'", time.Now().UTC()).Delete(models.AccessToken{})
}

func storeSessions() {
Expand Down

0 comments on commit 649fdad

Please sign in to comment.