feat: auto lock (#18630)
* add delete to redis service * auto lock + tests * changes to autolock in api/book call * remove log clutter * add detection in api v1 * tpye changes * throw error and add tests for API * add response logic on locked + tests * type response properly i hope? * type fix * add tests for counter not existing + redis errors * remove IP - add sentry to track * rename symbol * fix type error * fix tests * remove sentry call spy * fix type on sentry setUser call --------- Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
1 parent
4855b6b40f
commit
b4a51d3560
7 files changed
+673
-6
No files matched your search
@@ -24,6 +24,7 @@ export async function checkRateLimitAndThrowError({
|
||||
message: `Rate limit exceeded. Try again in ${secondsToWait} seconds.`,
|
||||
});
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
export async function checkSMSRateLimit({
|
||||
|
||||
Reference in new issue
Block a user