mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +00:00
chore: auto-fix lint & formatting [skip ci]
This commit is contained in:
1 parent
9f875e3180
commit
869d84d78c
2 files changed
+2
-4
No files matched your search
@@ -46,4 +46,4 @@ export function useSendLogs() {
|
||||
}
|
||||
|
||||
return { logs, loading, needLogin, error, load, loadById };
|
||||
}
|
||||
}
|
||||
@@ -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) });
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user