mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
res.respond: allow for thrid parameter (message), refactor shared ops responses and adapt tests
This commit is contained in:
@@ -110,7 +110,7 @@ describe('Challenge Model', () => {
|
||||
};
|
||||
|
||||
Tasks.Task.sanitize(req.body);
|
||||
_.assign(task, common.ops.updateTask(task.toObject(), req));
|
||||
_.assign(task, common.ops.updateTask(task.toObject(), req)[0]);
|
||||
|
||||
await challenge.updateTask(task);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user