mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
fix(analytics): add missing headers to 3 events
This commit is contained in:
parent
d176c31382
commit
b63f2fa1fa
1 changed files with 3 additions and 0 deletions
|
|
@ -130,6 +130,7 @@ export async function update (req, res, { isV3 = false }) {
|
||||||
uuid: user._id,
|
uuid: user._id,
|
||||||
hitType: 'event',
|
hitType: 'event',
|
||||||
category: 'behavior',
|
category: 'behavior',
|
||||||
|
headers: req.headers,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -187,6 +188,7 @@ export async function update (req, res, { isV3 = false }) {
|
||||||
uuid: user._id,
|
uuid: user._id,
|
||||||
hitType: 'event',
|
hitType: 'event',
|
||||||
category: 'behavior',
|
category: 'behavior',
|
||||||
|
headers: req.headers,u
|
||||||
});
|
});
|
||||||
} else if (key === 'tags') {
|
} else if (key === 'tags') {
|
||||||
if (!Array.isArray(val)) throw new BadRequest('Tag list must be an array.');
|
if (!Array.isArray(val)) throw new BadRequest('Tag list must be an array.');
|
||||||
|
|
@ -274,6 +276,7 @@ export async function reset (req, res, { isV3 = false }) {
|
||||||
uuid: user._id,
|
uuid: user._id,
|
||||||
hitType: 'event',
|
hitType: 'event',
|
||||||
category: 'behavior',
|
category: 'behavior',
|
||||||
|
headers: req.headers,
|
||||||
});
|
});
|
||||||
|
|
||||||
res.respond(200, ...resetRes);
|
res.respond(200, ...resetRes);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue