zerobyte/app/server/jobs/cleanup-sessions.ts
2026-01-03 12:03:04 +01:00

11 lines
313 B
TypeScript

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