diff --git a/website/common/script/content/index.js b/website/common/script/content/index.js index 1d3d42d006..5ab0f91006 100644 --- a/website/common/script/content/index.js +++ b/website/common/script/content/index.js @@ -65,12 +65,12 @@ api.bundles = { 'owl', ], canBuy () { - return moment().isBetween('2017-05-16','2017-06-02'); + return moment().isBetween('2017-05-16', '2017-06-02'); }, type: 'quests', value: 7, }, -}, +}; /* --------------------------------------------------------------- diff --git a/website/common/script/content/quests.js b/website/common/script/content/quests.js index c5e9a350d0..bb41bdd2e5 100644 --- a/website/common/script/content/quests.js +++ b/website/common/script/content/quests.js @@ -2721,4 +2721,4 @@ module.exports = { quests, questsByLevel, userCanOwnQuestCategories, -} +}; diff --git a/website/common/script/libs/shops.js b/website/common/script/libs/shops.js index 4dba6d8ab7..5492a176a7 100644 --- a/website/common/script/libs/shops.js +++ b/website/common/script/libs/shops.js @@ -130,7 +130,7 @@ shops.getQuestShopCategories = function getQuestShopCategories (user, language) currency: 'gems', class: `quest_bundle_${bundle.key}`, purchaseType: 'bundles', - } + }; })); categories.push(bundleCategory); diff --git a/website/common/script/ops/purchase.js b/website/common/script/ops/purchase.js index e7ac50af42..96324281b5 100644 --- a/website/common/script/ops/purchase.js +++ b/website/common/script/ops/purchase.js @@ -104,7 +104,7 @@ module.exports = function purchase (user, req = {}, analytics) { user.items.gear.owned[key] = true; } else if (type === 'bundles') { let subType = item.type; - forEach(item.bundleKeys, function (bundledKey) { + forEach(item.bundleKeys, function addBundledItems (bundledKey) { if (!user.items[subType][bundledKey] || user.items[subType][key] < 0) { user.items[subType][bundledKey] = 0; }