Merge branch 'develop' into unlock-fixes

This commit is contained in:
Matteo Pagliazzi
2020-05-25 19:00:56 +02:00
379 changed files with 29607 additions and 28474 deletions
+11 -10
View File
@@ -26,18 +26,19 @@ export default function buyMysterySet (user, req = {}, analytics) {
each(mysterySet.items, item => {
user.items.gear.owned[item.key] = true;
if (analytics) {
analytics.track('acquire item', {
uuid: user._id,
itemKey: item.key,
itemType: 'Subscriber Gear',
acquireMethod: 'Hourglass',
category: 'behavior',
headers: req.headers,
});
}
});
if (analytics) {
analytics.track('acquire item', {
uuid: user._id,
itemKey: mysterySet.key,
itemType: 'Subscriber Gear',
acquireMethod: 'Hourglass',
category: 'behavior',
headers: req.headers,
});
}
// Here we need to trigger vue reactivity through reassign object
user.items.gear.owned = {
...user.items.gear.owned,