Skip to content

Commit

Permalink
(BIDS-2872) wip
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Feb 13, 2024
1 parent a0091d0 commit 36bdc72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ratelimit/ratelimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ func DBInvalidateApiKeys() (sql.Result, error) {
return db.FrontendWriterDB.Exec(`
update api_keys
set changed_at = now(), valid_until = now()
where valid_until > now() and not exists (select api_key from users where id = api_keys.user_id)`)
where valid_until > now() and not exists (select id from users where id = api_keys.user_id)`)
}

func DBUpdateApiKeys() (sql.Result, error) {
Expand Down

0 comments on commit 36bdc72

Please sign in to comment.