Remove Debug part of fetching data from database
This commit is contained in:
parent
ad25c69c79
commit
4e1faf26be
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user