From 6d0251a673387a4aba618e559a40d47177871242 Mon Sep 17 00:00:00 2001 From: m4 Date: Tue, 11 Aug 2026 12:21:42 +0800 Subject: [PATCH] fix(webui): clean up eslint errors in branding route and backup scheduler test Co-Authored-By: Claude Opus 4.7 --- src/app/api/system/branding/route.ts | 3 +-- src/lib/server/backupScheduler.test.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/api/system/branding/route.ts b/src/app/api/system/branding/route.ts index e4be3b9..6d7fd7f 100644 --- a/src/app/api/system/branding/route.ts +++ b/src/app/api/system/branding/route.ts @@ -14,8 +14,7 @@ export const runtime = "nodejs"; export const dynamic = "force-dynamic"; const MAX_BYTES = 512 * 1024; -const KINDS = ["logo", "favicon"] as const; -type Kind = (typeof KINDS)[number]; +type Kind = "logo" | "favicon"; const MIME_TO_EXT: Record = { "image/png": "png", "image/jpeg": "jpg", diff --git a/src/lib/server/backupScheduler.test.ts b/src/lib/server/backupScheduler.test.ts index a3bcfde..43a1bb5 100644 --- a/src/lib/server/backupScheduler.test.ts +++ b/src/lib/server/backupScheduler.test.ts @@ -15,7 +15,7 @@ const { getSystemConfig, saveSystemConfig, resetSystemConfigCacheForTests } = await import("./systemConfig"); const HOUR = 3600_000; -let now = 1_800_000_000_000; +const now = 1_800_000_000_000; describe("backupScheduler.tickBackupSchedule", () => { beforeEach(() => {