Skip to content

Commit 887918b

Browse files
committed
limiter bugfiksi
1 parent b9cb683 commit 887918b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/src/dbSetup.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export const runSetup = async (startYear?: number) => {
8282
await addStatusRow({ message: 'updated', from, to, timestamp: new Date().toISOString() }, false);
8383
console.log(`[SETUP] Step 5 completed in ${Date.now() - step5Start}ms`);
8484
}
85-
stopFinlexLimiterLogging();
8685
const totalDuration = Date.now() - setupStartTime;
8786
const minutes = Math.floor(totalDuration / 60000);
8887
const seconds = Math.floor((totalDuration % 60000) / 1000);
@@ -92,5 +91,7 @@ export const runSetup = async (startYear?: number) => {
9291
Sentry.captureException(error);
9392
console.error(`[SETUP] Setup failed after ${errorDuration}ms:`, error);
9493
throw error;
94+
} finally {
95+
stopFinlexLimiterLogging();
9596
}
9697
}

0 commit comments

Comments
 (0)