This commit is contained in:
parent
377e70f4c6
commit
6a8591a272
@ -2506,19 +2506,19 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
|
||||
}
|
||||
|
||||
const isOctober = date.getUTCMonth() == 9; // October = month index 9
|
||||
if (config.worldState?.naberusNights ?? isOctober) {
|
||||
if (config.worldState?.naberusNightsOverride ?? isOctober) {
|
||||
worldState.Goals.push({
|
||||
_id: { $oid: "66fd602de1778d583419e8e7" },
|
||||
Activation: {
|
||||
$date: {
|
||||
$numberLong: config.worldState?.naberusNights
|
||||
$numberLong: config.worldState?.naberusNightsOverride
|
||||
? "1727881200000"
|
||||
: Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1).toString()
|
||||
}
|
||||
},
|
||||
Expiry: {
|
||||
$date: {
|
||||
$numberLong: config.worldState?.naberusNights
|
||||
$numberLong: config.worldState?.naberusNightsOverride
|
||||
? "2000000000000"
|
||||
: Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + 1, 1).toString()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user