WIP(teams): fix initially unassigned task, add completedBy data

This commit is contained in:
Sabe Jones
2021-04-14 16:42:56 -05:00
committed by SabreCat
parent 74345adf6b
commit ae0528e5cd
4 changed files with 13 additions and 5 deletions

View File

@@ -147,6 +147,7 @@ export const TaskSchema = new Schema({
default: SHARED_COMPLETION.single,
},
managerNotes: { $type: String },
completedBy: { $type: String, ref: 'User', validate: [v => validator.isUUID(v), 'Invalid uuid for group completing user.'] },
},
reminders: [reminderSchema],