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:
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Webhook" ADD COLUMN "domainIds" INTEGER[] DEFAULT ARRAY[]::INTEGER[];
|
||||
@@ -469,6 +469,7 @@ enum WebhookCallStatus {
|
||||
model Webhook {
|
||||
id String @id @default(cuid())
|
||||
teamId Int
|
||||
domainIds Int[] @default([])
|
||||
url String
|
||||
description String?
|
||||
secret String
|
||||
|
||||
Reference in New Issue
Block a user