From 869d84d78c3b5541199f8a889ba60a5c96627b63 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 8 Aug 2026 16:53:44 +0000 Subject: [PATCH] chore: auto-fix lint & formatting [skip ci] --- admin/composables/useLogs.ts | 2 +- src/web/admin-routes.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/admin/composables/useLogs.ts b/admin/composables/useLogs.ts index b9cb2ca..c1311c6 100644 --- a/admin/composables/useLogs.ts +++ b/admin/composables/useLogs.ts @@ -46,4 +46,4 @@ export function useSendLogs() { } return { logs, loading, needLogin, error, load, loadById }; -} \ No newline at end of file +} diff --git a/src/web/admin-routes.ts b/src/web/admin-routes.ts index 76c4a5e..125d074 100644 --- a/src/web/admin-routes.ts +++ b/src/web/admin-routes.ts @@ -292,9 +292,7 @@ export function createAdminRoutes(): Hono<{ Bindings: Env }> { const allowed = s.scope.isSuper ? allLogs : allLogs.filter((l) => l.groupId != null && s.scope.groupIds.has(l.groupId)); - const logs = filterGroupId - ? allowed.filter((l) => l.groupId === filterGroupId) - : allowed; + const logs = filterGroupId ? allowed.filter((l) => l.groupId === filterGroupId) : allowed; return c.json({ logs: logs.slice(0, limit) }); });