forked from OpenWF/SpaceNinjaServer
fix worldStateService
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
|
const isOctober = date.getUTCMonth() == 9; // October = month index 9
|
||||||
if (config.worldState?.naberusNights ?? isOctober) {
|
if (config.worldState?.naberusNightsOverride ?? isOctober) {
|
||||||
worldState.Goals.push({
|
worldState.Goals.push({
|
||||||
_id: { $oid: "66fd602de1778d583419e8e7" },
|
_id: { $oid: "66fd602de1778d583419e8e7" },
|
||||||
Activation: {
|
Activation: {
|
||||||
$date: {
|
$date: {
|
||||||
$numberLong: config.worldState?.naberusNights
|
$numberLong: config.worldState?.naberusNightsOverride
|
||||||
? "1727881200000"
|
? "1727881200000"
|
||||||
: Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1).toString()
|
: Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1).toString()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Expiry: {
|
Expiry: {
|
||||||
$date: {
|
$date: {
|
||||||
$numberLong: config.worldState?.naberusNights
|
$numberLong: config.worldState?.naberusNightsOverride
|
||||||
? "2000000000000"
|
? "2000000000000"
|
||||||
: Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + 1, 1).toString()
|
: Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + 1, 1).toString()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user