chore: auto-fix lint & formatting [skip ci]

This commit is contained in:
github-actions[bot] authored and GitHub committed 2026-10-17 03:37:45 +00:00
1 parent 2281c19939
commit 29b15f4933
2 files changed
+15 -13

No files matched your search

+1 -1
View File
@@ -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) | | `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 | | `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/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) | | `GET /admin/api/groups/:id/invites` | List pending invites (owner) |
| `POST /admin/api/groups/:id/invites` | Create an invite link (owner) | | `POST /admin/api/groups/:id/invites` | Create an invite link (owner) |
| `DELETE /admin/api/invites/:token` | Revoke an invite (owner) | | `DELETE /admin/api/invites/:token` | Revoke an invite (owner) |
+14 -12
View File
@@ -65,18 +65,20 @@ export function d1ConfigStore(db: D1Database, kv: KVNamespace): ConfigStore {
if (!filters || !targets || (r.discord_role_ids && !discordRoleIds) || (r.ast && !ast)) { if (!filters || !targets || (r.discord_role_ids && !discordRoleIds) || (r.ast && !ast)) {
return []; return [];
} }
return [{ return [
id: r.id, {
groupId: r.group_id, id: r.id,
name: r.name, groupId: r.group_id,
enabled: r.enabled === 1, name: r.name,
filters, enabled: r.enabled === 1,
targets, filters,
stop: r.stop === 1, targets,
fallback: r.fallback === 1, stop: r.stop === 1,
discordRoleIds: discordRoleIds ?? undefined, fallback: r.fallback === 1,
ast: ast ?? undefined, discordRoleIds: discordRoleIds ?? undefined,
}]; ast: ast ?? undefined,
},
];
}); });
} }