fix(analytics): problems

This commit is contained in:
Sabe Jones
2020-03-30 11:01:41 -05:00
parent 947e8a1836
commit bb9912de89
8 changed files with 11 additions and 10 deletions
+2 -2
View File
@@ -790,7 +790,7 @@ api.hatch = {
url: '/user/hatch/:egg/:hatchingPotion',
async handler (req, res) {
const { user } = res.locals;
const hatchRes = common.ops.hatch(user, req);
const hatchRes = common.ops.hatch(user, req, res.analytics);
await user.save();
@@ -881,7 +881,7 @@ api.feed = {
url: '/user/feed/:pet/:food',
async handler (req, res) {
const { user } = res.locals;
const feedRes = common.ops.feed(user, req);
const feedRes = common.ops.feed(user, req, res.analytics);
await user.save();