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) }); });