Webhook polishing (#2987)

This commit is contained in:
Syed Ali Shahbaz authored and GitHub committed 2022-06-16 17:21:48 +01:00
1 parent c5a40f6c37
commit 6253216484
13 files changed
+149 -11

No files matched your search

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Webhook" ADD COLUMN "secret" TEXT;
+1
View File
@@ -397,6 +397,7 @@ model Webhook {
eventType EventType? @relation(fields: [eventTypeId], references: [id], onDelete: Cascade)
app App? @relation(fields: [appId], references: [slug], onDelete: Cascade)
appId String?
secret String?
}
model Impersonations {
+1
View File
@@ -13,6 +13,7 @@ export const _WebhookModel = z.object({
active: z.boolean(),
eventTriggers: z.nativeEnum(WebhookTriggerEvents).array(),
appId: z.string().nullish(),
secret: z.string().nullish(),
})
export interface CompleteWebhook extends z.infer<typeof _WebhookModel> {