Remove Debug part of fetching data from database

This commit is contained in:
qowevisa 2024-11-08 17:06:31 +02:00
parent ad25c69c79
commit 4e1faf26be

View File

@ -27,7 +27,7 @@ func ValidateSessionToken(token string) bool {
sessionID := getSessionIDFromToken(token) sessionID := getSessionIDFromToken(token)
dbc := db.Connect() dbc := db.Connect()
session := &db.Session{} 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) log.Printf("DBERROR: %v\n", err)
return false return false
} }