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) => {
|
||||
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);
|
||||
|
@ -1078,7 +1078,6 @@
|
||||
"ConstructionProjects": [],
|
||||
"TwitchPromos": [],
|
||||
"ExperimentRecommended": [],
|
||||
"EndlessXpChoices": [],
|
||||
"ForceLogoutVersion": 0,
|
||||
"SeasonInfo": {
|
||||
"Activation": { "$date": { "$numberLong": "1715796000000" } },
|
||||
|
Loading…
x
Reference in New Issue
Block a user