Added analytics to drop (#9792)

* Added analytics to drop

* Updated tracking category
This commit is contained in:
Keith Holliday
2018-01-22 09:15:23 -07:00
committed by GitHub
parent 38aafb6c7b
commit 90ffe587dd
2 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -584,7 +584,7 @@ api.scoreTask = {
let [delta] = common.ops.scoreTask({task, user, 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);
if (direction === 'up') user.fns.randomDrop({task, delta}, req, res.analytics);
// If a todo was completed or uncompleted move it in or out of the user.tasksOrder.todos list
// TODO move to common code?