Updates
This commit is contained in:
+4
-1
@@ -88,7 +88,10 @@ export class App {
|
||||
startUniqueRequestCleanup(cleanupIntervalMs: number, timestampWindowMs: number): void {
|
||||
// Every 10 seconds, we will cleanup the requests table
|
||||
setInterval(async () => {
|
||||
await this.database.db.deleteFrom('authed_requests').where('timestamp', '<', Date.now() - timestampWindowMs).execute();
|
||||
await this.database.db
|
||||
.deleteFrom('authed_requests')
|
||||
.where('timestamp', '<', Date.now() - timestampWindowMs)
|
||||
.execute();
|
||||
}, cleanupIntervalMs);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user