chore: format files

This commit is contained in:
Nicolas Meienberger
2025-11-26 22:52:05 +01:00
parent 60f37076a8
commit 150b4f6e89
14 changed files with 3303 additions and 3468 deletions

View File

@@ -134,7 +134,10 @@ export class AuthService {
* Clean up expired sessions
*/
async cleanupExpiredSessions() {
const result = await db.delete(sessionsTable).where(lt(sessionsTable.expiresAt, Math.floor(Date.now() / 1000))).returning();
const result = await db
.delete(sessionsTable)
.where(lt(sessionsTable.expiresAt, Math.floor(Date.now() / 1000)))
.returning();
if (result.length > 0) {
logger.info(`Cleaned up ${result.length} expired sessions`);
}

View File

@@ -209,7 +209,12 @@ const executeBackup = async (scheduleId: number, manual = false) => {
await db
.update(backupSchedulesTable)
.set({ lastBackupStatus: "in_progress", updatedAt: Math.floor(Date.now() / 1000), lastBackupError: null, nextBackupAt })
.set({
lastBackupStatus: "in_progress",
updatedAt: Math.floor(Date.now() / 1000),
lastBackupError: null,
nextBackupAt,
})
.where(eq(backupSchedulesTable.id, scheduleId));
const abortController = new AbortController();