We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f8dd79 commit 3106bcaCopy full SHA for 3106bca
source/stores/individual_ip/store_individual_ip.ts
@@ -134,7 +134,7 @@ class PostgresStoreIndividualIP implements Store {
134
WITH
135
rows_to_delete AS (
136
SELECT id FROM rate_limit.individual_records
137
- WHERE key = $1 and session_id = $2 ORDER BY registered_at LIMIT 1
+ WHERE key = $1 and session_id = $2 ORDER BY event_time LIMIT 1
138
)
139
DELETE FROM rate_limit.individual_records
140
USING rows_to_delete WHERE individual_records.id = rows_to_delete.id
0 commit comments