zerobyte/app/server/jobs/cleanup-sessions.ts
2026-01-05 20:15:00 +01:00

10 lines
263 B
TypeScript

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