From c06c5946308db46e0cbbdb1766f834574536813e Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 26 Feb 2026 21:19:39 -0500 Subject: [PATCH] chore: updated webhook --- packages/server/src/routes/webhook.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/server/src/routes/webhook.ts b/packages/server/src/routes/webhook.ts index 53cf507..ff86cdd 100644 --- a/packages/server/src/routes/webhook.ts +++ b/packages/server/src/routes/webhook.ts @@ -28,6 +28,10 @@ webhook.post("/tap", async (c) => { if (event.type === "record") { const { record } = event; + if (record.live === false) { + return c.json({ ok: true }); + } + if (record.collection === "site.standard.document") { if (record.action === "create" || record.action === "update") { await db @@ -145,6 +149,7 @@ webhook.post("/tap/batch", async (c) => { const events = (await c.req.json()) as Array<{ type: string; did: string; + live?: boolean; collection?: string; rkey?: string; cid?: string; @@ -156,6 +161,10 @@ webhook.post("/tap/batch", async (c) => { for (const event of events) { try { + if (event.live === false) { + continue; + } + if ( (event.type === "commit" || event.type === "create" || -- 2.51.2