mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Added requested approval fields and logic
This commit is contained in:
@@ -73,6 +73,10 @@ export let TaskSchema = new Schema({
|
||||
|
||||
requiresApproval: {type: Boolean, default: false},
|
||||
approved: {type: Boolean, default: false},
|
||||
approvedDate: {type: Date},
|
||||
approvingUser: [{type: String, ref: 'User', validate: [validator.isUUID, 'Invalid uuid.']}],
|
||||
approvalRequested: {type: Boolean, default: false},
|
||||
approvalRequestedDate: {type: Date},
|
||||
|
||||
reminders: [{
|
||||
_id: false,
|
||||
|
||||
Reference in New Issue
Block a user