Browse Source

chore(api): make user field required in webhook subscription schema

pull/37/head
isra el 1 year ago
parent
commit
717e4fb1a1
  1. 2
      api/src/webhook/schemas/webhook-subscription.schema.ts

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

Loading…
Cancel
Save