fix: typescript errors

This commit is contained in:
M
2025-09-25 13:40:10 +02:00
parent 198cd79354
commit 631e95604b
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -106,7 +106,10 @@ const login = async (
const rateLimiter = RateLimiter.getInstance()
if (!validPass) {
const retrySecs = await rateLimiter.consume(req.ip || 'unknown', user?.username)
const retrySecs = await rateLimiter.consume(
req.ip || 'unknown',
user?.username
)
if (retrySecs > 0) throw errors.tooManyRequests(retrySecs)
}