fix: EndlessXpChoices growing with every worldState request

This commit is contained in:
Sainan 2025-01-10 06:11:27 +01:00
parent c07f7502a4
commit 99416123d1
2 changed files with 3 additions and 3 deletions

View File

@ -5,12 +5,13 @@ import { IMongoDate, IOid } from "@/src/types/commonTypes";
export const worldStateController: RequestHandler = (req, res) => {
const worldState: IWorldState = {
...staticWorldState,
BuildLabel:
typeof req.query.buildLabel == "string"
? req.query.buildLabel.split(" ").join("+")
: buildConfig.buildLabel,
Time: Math.round(Date.now() / 1000)
Time: Math.round(Date.now() / 1000),
EndlessXpChoices: [],
...staticWorldState
};
const week = Math.trunc(new Date().getTime() / 604800000);

View File

@ -1078,7 +1078,6 @@
"ConstructionProjects": [],
"TwitchPromos": [],
"ExperimentRecommended": [],
"EndlessXpChoices": [],
"ForceLogoutVersion": 0,
"SeasonInfo": {
"Activation": { "$date": { "$numberLong": "1715796000000" } },