From 4e1faf26be12f8177b75d162131906e876f7f824 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Fri, 8 Nov 2024 17:06:31 +0200 Subject: [PATCH] Remove Debug part of fetching data from database --- tokens/sessions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokens/sessions.go b/tokens/sessions.go index 8f13c48..8d5519a 100644 --- a/tokens/sessions.go +++ b/tokens/sessions.go @@ -27,7 +27,7 @@ func ValidateSessionToken(token string) bool { sessionID := getSessionIDFromToken(token) dbc := db.Connect() session := &db.Session{} - if err := dbc.Debug().Find(session, db.Session{ID: sessionID}).Error; err != nil { + if err := dbc.Find(session, db.Session{ID: sessionID}).Error; err != nil { log.Printf("DBERROR: %v\n", err) return false }