From e2efcd550c9dd0e2520d6ed76718b87e45500f50 Mon Sep 17 00:00:00 2001 From: Up Date: Tue, 14 May 2024 23:17:14 +0200 Subject: [PATCH] fix faulty sql query --- db/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/account.go b/db/account.go index e000122..a54b7bc 100644 --- a/db/account.go +++ b/db/account.go @@ -212,7 +212,7 @@ func UpdateTrainerIds(trainerId, secretId int, uuid []byte) error { func IsActiveSession(uuid []byte, clientSessionId string) (bool, error) { var storedId string - err := handle.QueryRow("SELECT clientSessionId FROM activeClientSessions WHERE sessions.uuid = ?", uuid).Scan(&storedId) + err := handle.QueryRow("SELECT clientSessionId FROM activeClientSessions WHERE uuid = ?", uuid).Scan(&storedId) if err != nil { if errors.Is(err, sql.ErrNoRows) { return false, nil