Merge branch 'develop' into release

This commit is contained in:
Sabe Jones
2020-05-21 14:59:58 -05:00
125 changed files with 859 additions and 560 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,