chore(content): add October Pet Quest Bundle (#14268)

* chore(content): add October Pet Quest Bundle

* update: change event start date to the correct one
This commit is contained in:
Natalie L
2022-10-11 12:53:46 -04:00
committed by GitHub
parent 137f7d53dc
commit d1928c9181
3 changed files with 13 additions and 8 deletions

View File

@@ -68,8 +68,9 @@ const bundles = {
'spider', 'spider',
'frog', 'frog',
], ],
event: EVENTS.bundle202210,
canBuy () { canBuy () {
return moment().isBetween('2019-10-15', '2019-11-02'); return moment().isBetween(EVENTS.bundle202210.start, EVENTS.bundle202210.end);
}, },
type: 'quests', type: 'quests',
value: 7, value: 7,

View File

@@ -32,6 +32,10 @@ export const EVENTS = {
end: '2022-10-13T20:00-04:00', end: '2022-10-13T20:00-04:00',
gemsPromo, gemsPromo,
}, },
bundle202210: {
start: '2022-10-13T08:00-04:00',
end: '2022-10-31T20:00-04:00',
},
beforeGala: { beforeGala: {
start: '2022-07-31T20:00-04:00', start: '2022-07-31T20:00-04:00',
end: '2022-09-20T08:00-04:00', end: '2022-09-20T08:00-04:00',

View File

@@ -45,19 +45,19 @@ const featuredItems = {
]; ];
}, },
quests () { quests () {
if (moment().isBetween(EVENTS.bundle202208.start, EVENTS.bundle202209.end)) { if (moment().isBetween(EVENTS.bundle202210.start, EVENTS.bundle202210.end)) {
return [ return [
{ {
type: 'bundles', type: 'bundles',
path: 'bundles.forestFriends', path: 'bundles.witchyFamiliars',
},
{
type: 'bundles',
path: 'bundles.farmFriends',
}, },
{ {
type: 'quests', type: 'quests',
path: 'quests.ferret', path: 'quests.snake',
},
{
type: 'quests',
path: 'quests.owl',
}, },
]; ];
} }