From a01effd6503ba3362b37beda979ec37e74f831b3 Mon Sep 17 00:00:00 2001 From: repo-worker-tmp-code-b Date: Sat, 14 Nov 2026 05:26:34 -0600 Subject: [PATCH] fix(aggregator): remove projected GET /api/push/subscriptions (#4983) --- pm-stack/aggregator/README.md | 2 +- pm-stack/aggregator/src/server.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pm-stack/aggregator/README.md b/pm-stack/aggregator/README.md index 2d90b2e40e..8f3b3a9441 100644 --- a/pm-stack/aggregator/README.md +++ b/pm-stack/aggregator/README.md @@ -375,7 +375,7 @@ path as the fleet-feed collector's AA read (`src/supabase.ts`). the page-side probe script (`/assets/push-client.js`, loaded by every page) unregisters foreign registrations and reports what it sees to `/api/sw-probe` (GET returns the running summary). -- **Subscriptions**: `POST/GET/DELETE /api/push/subscriptions` over +- **Subscriptions**: `POST/DELETE /api/push/subscriptions` over `alerts.push_subscriptions` — per-class map + quiet prefs (defaults: `incident` on; quiet 23:00–07:00 America/Chicago). A 404/410 from a push service bumps `gone_count`; two consecutive diff --git a/pm-stack/aggregator/src/server.ts b/pm-stack/aggregator/src/server.ts index 4f60cb32f7..1a516089aa 100644 --- a/pm-stack/aggregator/src/server.ts +++ b/pm-stack/aggregator/src/server.ts @@ -3272,8 +3272,6 @@ async function handler(req: Request): Promise { if (path === "/api/push/subscriptions") { const store = await getAlertsStore(); if (!store) return json({ error: "alerts store unavailable" }, 503); - if (req.method === "GET") - return json({ subscriptions: (await store.listSubscriptions()).map(toPublicSubscription) }); if (req.method === "POST") { try { const parsed = validateNewSubscription(await readJsonBody(req));