fix faulty sql query

master
Up 2024-05-14 23:17:14 +02:00
parent 834d1e62a0
commit e2efcd550c
No known key found for this signature in database
GPG Key ID: 3B75CD7439FEB388
1 changed files with 1 additions and 1 deletions

View File

@ -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