From 717e4fb1a184facf1ce457bdd9bf9ba1bd750d25 Mon Sep 17 00:00:00 2001 From: isra el Date: Sun, 22 Dec 2024 01:03:57 +0300 Subject: [PATCH] chore(api): make user field required in webhook subscription schema --- api/src/webhook/schemas/webhook-subscription.schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/webhook/schemas/webhook-subscription.schema.ts b/api/src/webhook/schemas/webhook-subscription.schema.ts index 3e69d04..d7703b6 100644 --- a/api/src/webhook/schemas/webhook-subscription.schema.ts +++ b/api/src/webhook/schemas/webhook-subscription.schema.ts @@ -9,7 +9,7 @@ export type WebhookSubscriptionDocument = WebhookSubscription & Document export class WebhookSubscription { _id?: Types.ObjectId - @Prop({ type: Types.ObjectId, ref: User.name }) + @Prop({ type: Types.ObjectId, ref: User.name, required: true }) user: User @Prop({ type: Boolean, default: true })