mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
chore: auto-fix lint & formatting [skip ci]
This commit is contained in:
parent
9f875e3180
commit
869d84d78c
2 changed files with 2 additions and 4 deletions
|
|
@ -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) });
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue