WIP(multi-assign): functioning multi

This commit is contained in:
SabreCat
2022-01-21 16:26:30 -06:00
parent a495db8480
commit eaa5f821a4
5 changed files with 100 additions and 91 deletions

View File

@@ -140,7 +140,10 @@ export const TaskSchema = new Schema({
$type: String, default: 'singleCompletion', // legacy data
},
managerNotes: { $type: String },
completedBy: { $type: String, ref: 'User', validate: [v => validator.isUUID(v), 'Invalid uuid for group completing user.'] },
completedBy: {
$type: Schema.Types.Mixed,
default: () => ({}), // { 'UUID': Date }
},
},
reminders: [reminderSchema],