fix inventory projection
All checks were successful
Build / build (pull_request) Successful in 1m9s

This commit is contained in:
Sainan 2025-10-07 09:01:36 +02:00
parent ae7c372827
commit ccff43b64b

View File

@ -311,7 +311,7 @@ export const nemesisController: RequestHandler = async (req, res) => {
target: inventory.toJSON().Nemesis target: inventory.toJSON().Nemesis
}); });
} else if ((req.query.mode as string) == "t") { } else if ((req.query.mode as string) == "t") {
const inventory = await getInventory(account._id.toString(), "NemesisHistory"); const inventory = await getInventory(account._id.toString(), "LastNemesisAllySpawnTime");
//const body = getJSONfromString<IUpdateAllySpawnTimeRequest>(String(req.body)); //const body = getJSONfromString<IUpdateAllySpawnTimeRequest>(String(req.body));
const now = new Date(Math.trunc(Date.now() / 1000) * 1000); const now = new Date(Math.trunc(Date.now() / 1000) * 1000);
inventory.LastNemesisAllySpawnTime = now; inventory.LastNemesisAllySpawnTime = now;