mongodb model prop

master
Matthew 2022-03-01 13:36:50 -05:00
parent fb51d14c51
commit e784834ea8
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ export default class Merchant {
@prop({ required: true })
public key: string;
@prop({ required: true })
@prop()
public privileged: boolean;
@prop({ required: true })

View File

@ -19,7 +19,7 @@ export default class Moderation {
@prop({ required: true })
public moderatorID: string;
@prop({ required: true })
@prop()
public reason: string;
@prop({ required: true })

View File

@ -24,7 +24,7 @@ export default class Motion {
absent: number;
};
@prop({ required: true })
@prop()
public processed: boolean;
@prop({ required: true, unique: true })