fix(valentines): adjust empty event daterange

This commit is contained in:
SabreCat
2022-02-14 15:20:37 -06:00
parent d1ef90db29
commit 77751223d3
3 changed files with 58 additions and 20082 deletions

20122
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,11 +10,17 @@ const gemsPromo = {
export const EVENTS = {
noCurrentEvent: {
start: '2022-01-31T20:00-05:00',
end: '2022-02-28T20:00-05:00',
start: '2022-02-18T20:00-05:00',
end: '2022-03-31T20:00-05:00',
season: 'normal',
npcImageSuffix: '',
},
valentines2022: {
start: '2022-02-14T08:00-05:00',
end: '2022-02-18T20:00-05:00',
season: 'valentines',
npcImageSuffix: 'valentines',
},
winter2022: {
start: '2021-12-21T08:00-05:00',
end: '2022-01-31T20:00-05:00',
@@ -93,12 +99,6 @@ export const EVENTS = {
end: '2021-04-02T08:00-05:00',
aprilFools: 'invert',
},
valentines2022: {
start: '2022-02-14T08:00-05:00',
end: '2022-02-18T08:00-05:00',
season: 'valentines',
npcImageSuffix: 'valentines',
},
winter2021: {
start: '2020-12-17T08:00-05:00',
end: '2021-01-31T20:00-05:00',

View File

@@ -22,7 +22,6 @@ import {
} from '../../libs/email';
import * as inboxLib from '../../libs/inbox';
import * as userLib from '../../libs/user';
import logger from '../../libs/logger';
const TECH_ASSISTANCE_EMAIL = nconf.get('EMAILS_TECH_ASSISTANCE_EMAIL');
const DELETE_CONFIRMATION = 'DELETE';
@@ -1014,7 +1013,6 @@ api.purchase = {
if (req.body.quantity) quantity = req.body.quantity;
req.quantity = quantity;
logger.info('AAAAHHHHHH');
const purchaseRes = await common.ops.buy(user, req, res.analytics);
await user.save();
res.respond(200, ...purchaseRes);