@extend-therapy/elysia-db-ratelimiter 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -46,6 +46,10 @@ export const dbRateLimitHandler = (options) => {
|
|
|
46
46
|
else {
|
|
47
47
|
const errorMsg = "Could not get IP address for rate limiting";
|
|
48
48
|
log.error(errorMsg);
|
|
49
|
+
if (options.failOpen === false) {
|
|
50
|
+
throw new InternalServerError(errorMsg);
|
|
51
|
+
}
|
|
52
|
+
return;
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
55
|
else {
|