@escapenavigator/utils 1.10.9 → 1.10.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,13 +14,6 @@ function validatePromocode({ promocode, players, questroomId, timeZone, orderDat
|
|
|
14
14
|
const orderDayOfWeek = type === 'order' && getWeekdayNumber(orderDateInTimeZone);
|
|
15
15
|
const localOrderTime = type === 'order' && (0, date_fns_1.format)(orderDateInTimeZone, 'HH:mm');
|
|
16
16
|
const todayDate = (0, date_fns_1.format)((0, date_fns_tz_1.utcToZonedTime)(new Date(), timeZone), 'yyyy-MM-dd');
|
|
17
|
-
console.log({
|
|
18
|
-
currentDate,
|
|
19
|
-
orderDayOfWeek,
|
|
20
|
-
localOrderTime,
|
|
21
|
-
orderDate,
|
|
22
|
-
timeZone,
|
|
23
|
-
});
|
|
24
17
|
if (type === 'certificate' && !promocode.availableForCertificates) {
|
|
25
18
|
errors.push("The promocode can't be applied for certificates.");
|
|
26
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/utils",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"test": "jest"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.11",
|
|
18
18
|
"axios": "^0.21.4",
|
|
19
19
|
"class-transformer": "^0.5.1",
|
|
20
20
|
"class-validator": "^0.13.2",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"node_modules"
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "705a1d68f666ec68640ce96a632dfa475d20f470"
|
|
59
59
|
}
|