zerobyte/app/server/jobs/cleanup-sessions.ts
2026-01-03 11:34:14 +01:00

11 lines
307 B
TypeScript

import { Job } from "../core/scheduler";
import { authService } from "../modules/auth/auth.service";
export class CleanupSessionsJob extends Job {
async run() {
authService.cleanupExpiredSessions();
authService.cleanupExpiredPending2faSessions();
return { done: true, timestamp: new Date() };
}
}