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 15, 2024
1 parent 6d4552c commit 308ff90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ratelimit/ratelimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,8 @@ func DBUpdateApiKeys() (sql.Result, error) {
now() as changed_at
from users
where api_key is not null and not exists (select user_id from api_keys where api_keys.user_id = users.id)
on conflict (user_id, api_key) do update set
on conflict (api_key) do update set
user_id = excluded.user_id,
valid_until = excluded.valid_until,
changed_at = excluded.changed_at
where api_keys.valid_until != excluded.valid_until`,
Expand Down

0 comments on commit 308ff90

Please sign in to comment.