mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Added approval test and fixed line endings
This commit is contained in:
@@ -207,7 +207,7 @@ api.approveTask = {
|
||||
let taskId = req.params.taskId;
|
||||
let task = await Tasks.Task.findOne({
|
||||
'group.taskId': taskId,
|
||||
'userId': assignedUserId,
|
||||
userId: assignedUserId,
|
||||
});
|
||||
|
||||
if (!task) {
|
||||
|
||||
Reference in New Issue
Block a user