mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
fix(v3): cleanup of shared code
This commit is contained in:
@@ -124,6 +124,8 @@ api.score = function(req, res, next) {
|
||||
task,
|
||||
direction,
|
||||
}, req);
|
||||
// Drop system (don't run on the client, as it would only be discarded since ops are sent to the API, not the results)
|
||||
if (direction === 'up') user.fns.randomDrop({task, delta}, req);
|
||||
|
||||
asyncM.parallel({
|
||||
task: task.save.bind(task),
|
||||
|
||||
Reference in New Issue
Block a user