@riocrypto/common-server 1.0.1295 → 1.0.1296
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.
|
@@ -43,15 +43,12 @@ const getExchangeRates = (from, to, noMarkups) => __awaiter(void 0, void 0, void
|
|
|
43
43
|
const mexicoCityTime = new Date(now.toLocaleString("en-US", { timeZone: "America/Mexico_City" }));
|
|
44
44
|
const hours = mexicoCityTime.getHours();
|
|
45
45
|
const minutes = mexicoCityTime.getMinutes();
|
|
46
|
-
console.log("conversion rate", conversionRate);
|
|
47
46
|
if ((hours === 15 && minutes >= 45) ||
|
|
48
47
|
(hours > 15 && hours < 24) ||
|
|
49
48
|
(hours === 0 && minutes === 0)) {
|
|
50
|
-
console.log("1");
|
|
51
49
|
conversionRateWithMarkups = conversionRate * 0.997;
|
|
52
50
|
}
|
|
53
51
|
else if (hours >= 0 && hours < 7) {
|
|
54
|
-
console.log("@");
|
|
55
52
|
conversionRateWithMarkups = conversionRate * 0.996;
|
|
56
53
|
}
|
|
57
54
|
}
|