zerobyte/app/server/jobs/cleanup-sessions.ts
Nico 1391d6fe5e refactor: move from biome to oxlint/oxformat (#311)
* chore: install and configure oxlint

* chore: fix liniting issues

* chore: install and configure oxfmt

* ci: add oxlint action instead of biome

* chore: pr feedbacks

* Revert "chore: pr feedbacks"

This reverts commit 525dcd8d9f.
2026-01-06 18:34:06 +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() };
}
}