fix: EndlessXpChoices growing with every worldState request
This commit is contained in:
parent
c07f7502a4
commit
99416123d1
@ -5,12 +5,13 @@ import { IMongoDate, IOid } from "@/src/types/commonTypes";
|
|||||||
|
|
||||||
export const worldStateController: RequestHandler = (req, res) => {
|
export const worldStateController: RequestHandler = (req, res) => {
|
||||||
const worldState: IWorldState = {
|
const worldState: IWorldState = {
|
||||||
...staticWorldState,
|
|
||||||
BuildLabel:
|
BuildLabel:
|
||||||
typeof req.query.buildLabel == "string"
|
typeof req.query.buildLabel == "string"
|
||||||
? req.query.buildLabel.split(" ").join("+")
|
? req.query.buildLabel.split(" ").join("+")
|
||||||
: buildConfig.buildLabel,
|
: buildConfig.buildLabel,
|
||||||
Time: Math.round(Date.now() / 1000)
|
Time: Math.round(Date.now() / 1000),
|
||||||
|
EndlessXpChoices: [],
|
||||||
|
...staticWorldState
|
||||||
};
|
};
|
||||||
|
|
||||||
const week = Math.trunc(new Date().getTime() / 604800000);
|
const week = Math.trunc(new Date().getTime() / 604800000);
|
||||||
|
@ -1078,7 +1078,6 @@
|
|||||||
"ConstructionProjects": [],
|
"ConstructionProjects": [],
|
||||||
"TwitchPromos": [],
|
"TwitchPromos": [],
|
||||||
"ExperimentRecommended": [],
|
"ExperimentRecommended": [],
|
||||||
"EndlessXpChoices": [],
|
|
||||||
"ForceLogoutVersion": 0,
|
"ForceLogoutVersion": 0,
|
||||||
"SeasonInfo": {
|
"SeasonInfo": {
|
||||||
"Activation": { "$date": { "$numberLong": "1715796000000" } },
|
"Activation": { "$date": { "$numberLong": "1715796000000" } },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user