feat: add multi-domain filters to webhooks (#361)

* feat(webhooks): add multi-domain endpoint filtering

* test(webhooks): add domain filter router coverage

* fix(webhooks): apply domain filters only to domain-scoped events

* stuff

* stuff
This commit is contained in:
KM Koushik
2026-03-08 09:01:39 +11:00
committed by GitHub
parent 79f9049e40
commit 3c2d37906e
12 changed files with 778 additions and 21 deletions
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Webhook" ADD COLUMN "domainIds" INTEGER[] DEFAULT ARRAY[]::INTEGER[];
+1
View File
@@ -469,6 +469,7 @@ enum WebhookCallStatus {
model Webhook {
id String @id @default(cuid())
teamId Int
domainIds Int[] @default([])
url String
description String?
secret String