mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
Moved approval to subdoc
This commit is contained in:
@@ -57,7 +57,7 @@ export async function createTasks (req, res, options = {}) {
|
||||
} else if (group) {
|
||||
newTask.group.id = group._id;
|
||||
if (taskData.requiresApproval) {
|
||||
newTask.group.requiresApproval = true;
|
||||
newTask.group.approval.required = true;
|
||||
}
|
||||
} else {
|
||||
newTask.userId = user._id;
|
||||
|
||||
Reference in New Issue
Block a user