Skip to content

Commit 81ddbec

Browse files
fix: js deprecated 부분 수정
1 parent 9338c40 commit 81ddbec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/lib/rateLimit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function checkRateLimit(identifier: string): {
5050

5151
function cleanupOldEntries() {
5252
const now = Date.now();
53-
for (const [key, entry] of rateLimitMap.entries()) {
53+
for (const [key, entry] of Array.from(rateLimitMap.entries())) {
5454
if (now > entry.resetTime) {
5555
rateLimitMap.delete(key);
5656
}

0 commit comments

Comments
 (0)