From 2b12bf506fe25badb993724d7d179c4e6197b108 Mon Sep 17 00:00:00 2001 From: "eirk@staff.libraryofcode.org" <52634785+erics118@users.noreply.github.com> Date: Sat, 25 Dec 2021 13:28:17 -0500 Subject: [PATCH] update Judgement.ts --- models/Judgement.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/models/Judgement.ts b/models/Judgement.ts index 933c04d..e0b7a06 100644 --- a/models/Judgement.ts +++ b/models/Judgement.ts @@ -1,6 +1,6 @@ import { prop } from '@typegoose/typegoose'; -enum Severity { +export enum Severity { Low, Medium, High, @@ -10,21 +10,21 @@ export default class Judgement { @prop({ required: true }) public jID: string; - @prop() + @prop({required: true}) public userID: string; @prop({ required: true }) public enteredBy: string; - - @prop() + + @prop({required: true}) public severity: Severity; - @prop() + @prop({required: true}) public date: Date; @prop() - public expires?: Date; + public expires: Date; @prop() - public description?: string; + public description: string; }