🪻 distributed transcription service thistle.dunkirk.sh

fix: correct rate limiting table name in test cleanup

The rate limiting table is named rate_limit_attempts, not rate_limits.
Updated the test cleanup function to use the correct table name and
match keys containing test/admin identifiers.

Claude 9b310c90 af57f9fb

Changed files
+2 -2
src
+2 -2
src/index.test.ts
···
db.run("DELETE FROM transcriptions WHERE user_id IN (SELECT id FROM users WHERE email LIKE 'test%' OR email LIKE 'admin@%')");
db.run("DELETE FROM users WHERE email LIKE 'test%' OR email LIKE 'admin@%'");
-
// Clear rate limit data
-
db.run("DELETE FROM rate_limits WHERE identifier LIKE 'test%' OR identifier LIKE 'admin%'");
+
// Clear rate limit data (keys are formatted as "endpoint:type:identifier")
+
db.run("DELETE FROM rate_limit_attempts WHERE key LIKE '%test%' OR key LIKE '%admin%'");
}
beforeEach(() => {