diff --git a/tokens/sessions.go b/tokens/sessions.go index dfafd4b..96a867a 100644 --- a/tokens/sessions.go +++ b/tokens/sessions.go @@ -37,7 +37,7 @@ func ValidateSessionToken(token string) bool { return false } if session.ExpireAt.Unix() < time.Now().Unix() { - dbc.Delete(session) + dbc.Unscoped().Delete(session) return false } return session.ID != ""