Promote current discount

This commit is contained in:
tobspr 2022-04-20 11:17:56 +02:00
parent 6a0254b358
commit 7e198f2a72
9 changed files with 113 additions and 25 deletions

View file

@ -117,6 +117,13 @@ export const globalConfig = {
rendering: {},
debug: require("./config.local").default,
currentDiscount: {
amount: 50,
until: Date.parse("April 25 2022 23:59 +2:00"),
active: false, // computed later
},
// Secret vars
info: {
// Binary file salt
@ -161,3 +168,5 @@ if (G_IS_DEV && globalConfig.debug.noArtificialDelays) {
globalConfig.warmupTimeSecondsFast = 0;
globalConfig.warmupTimeSecondsRegular = 0;
}
globalConfig.currentDiscount.active = new Date().getTime() < globalConfig.currentDiscount.until;