Skip to content

Commit

Permalink
fix faulty sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed May 14, 2024
1 parent 834d1e6 commit e2efcd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2efcd5

Please sign in to comment.