From e784834ea83dd765772a50ac16280c4f6c4eb7a4 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 1 Mar 2022 13:36:50 -0500 Subject: [PATCH] mongodb model prop --- mongodb/Merchant.ts | 2 +- mongodb/Moderation.ts | 2 +- mongodb/Motion.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mongodb/Merchant.ts b/mongodb/Merchant.ts index 252cd2e..daff429 100644 --- a/mongodb/Merchant.ts +++ b/mongodb/Merchant.ts @@ -8,7 +8,7 @@ export default class Merchant { @prop({ required: true }) public key: string; - @prop({ required: true }) + @prop() public privileged: boolean; @prop({ required: true }) diff --git a/mongodb/Moderation.ts b/mongodb/Moderation.ts index d7a8b62..03c13b5 100644 --- a/mongodb/Moderation.ts +++ b/mongodb/Moderation.ts @@ -19,7 +19,7 @@ export default class Moderation { @prop({ required: true }) public moderatorID: string; - @prop({ required: true }) + @prop() public reason: string; @prop({ required: true }) diff --git a/mongodb/Motion.ts b/mongodb/Motion.ts index 3b42b5a..ae0e1aa 100644 --- a/mongodb/Motion.ts +++ b/mongodb/Motion.ts @@ -24,7 +24,7 @@ export default class Motion { absent: number; }; - @prop({ required: true }) + @prop() public processed: boolean; @prop({ required: true, unique: true })