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
2281c19939
commit
29b15f4933
2 files changed
+15
-13
No files matched your search
+1
-1
@@ -21,7 +21,7 @@ The console itself is served at `/admin`; its tabs are deep-linkable via the URL
|
||||
| `PUT /admin/api/groups/:id/routes` | Replace a group's routes (owner/admin) |
|
||||
| `GET /admin/api/groups/:id/fragments` | List a group's named filter fragments |
|
||||
| `PUT /admin/api/groups/:id/fragments` | Replace a group's named filter fragments (owner/admin) |
|
||||
| `PUT /admin/api/groups/:id/rename` | Rename a group (owner); routes, webhook secret and invites follow (routes are moved before the group record is updated) |
|
||||
| `PUT /admin/api/groups/:id/rename` | Rename a group (owner); routes, webhook secret and invites follow (routes are moved before the group record is updated) |
|
||||
| `GET /admin/api/groups/:id/invites` | List pending invites (owner) |
|
||||
| `POST /admin/api/groups/:id/invites` | Create an invite link (owner) |
|
||||
| `DELETE /admin/api/invites/:token` | Revoke an invite (owner) |
|
||||
|
||||
@@ -65,18 +65,20 @@ export function d1ConfigStore(db: D1Database, kv: KVNamespace): ConfigStore {
|
||||
if (!filters || !targets || (r.discord_role_ids && !discordRoleIds) || (r.ast && !ast)) {
|
||||
return [];
|
||||
}
|
||||
return [{
|
||||
id: r.id,
|
||||
groupId: r.group_id,
|
||||
name: r.name,
|
||||
enabled: r.enabled === 1,
|
||||
filters,
|
||||
targets,
|
||||
stop: r.stop === 1,
|
||||
fallback: r.fallback === 1,
|
||||
discordRoleIds: discordRoleIds ?? undefined,
|
||||
ast: ast ?? undefined,
|
||||
}];
|
||||
return [
|
||||
{
|
||||
id: r.id,
|
||||
groupId: r.group_id,
|
||||
name: r.name,
|
||||
enabled: r.enabled === 1,
|
||||
filters,
|
||||
targets,
|
||||
stop: r.stop === 1,
|
||||
fallback: r.fallback === 1,
|
||||
discordRoleIds: discordRoleIds ?? undefined,
|
||||
ast: ast ?? undefined,
|
||||
},
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user