Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pm-stack/aggregator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions pm-stack/aggregator/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3272,8 +3272,6 @@ async function handler(req: Request): Promise<Response> {
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));
Expand Down