From 29b15f49331a7b38dc02626289d52d0a2d1bf934 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 17 Oct 2026 03:37:45 +0000 Subject: [PATCH] chore: auto-fix lint & formatting [skip ci] --- docs/api/admin.md | 2 +- server/lib/storage/config-store.ts | 26 ++++++++++++++------------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/docs/api/admin.md b/docs/api/admin.md index 644d026..d221053 100644 --- a/docs/api/admin.md +++ b/docs/api/admin.md @@ -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) | diff --git a/server/lib/storage/config-store.ts b/server/lib/storage/config-store.ts index f3878a7..2ca9db1 100644 --- a/server/lib/storage/config-store.ts +++ b/server/lib/storage/config-store.ts @@ -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, + }, + ]; }); }