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 })