mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-18 11:48:52 +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,
|
||||
hitType: 'event',
|
||||
category: 'behavior',
|
||||
headers: req.headers,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -187,6 +188,7 @@ export async function update (req, res, { isV3 = false }) {
|
|||
uuid: user._id,
|
||||
hitType: 'event',
|
||||
category: 'behavior',
|
||||
headers: req.headers,u
|
||||
});
|
||||
} else if (key === 'tags') {
|
||||
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,
|
||||
hitType: 'event',
|
||||
category: 'behavior',
|
||||
headers: req.headers,
|
||||
});
|
||||
|
||||
res.respond(200, ...resetRes);
|
||||
|
|
|
|||
Loading…
Reference in a new issue