chore: check for xpBasedLevelCapDisabled in missionInventoryUpdate
All checks were successful
Build / build (pull_request) Successful in 4m25s

The bootstrapper provides this field since 0.8.2, so I think this field being absent is now more likely to mean that the patch is not in effect.
This commit is contained in:
Sainan 2025-10-06 14:32:23 +02:00
parent 66d3057d40
commit b6e67a46e5

View File

@ -129,14 +129,22 @@ export const missionInventoryUpdateController: RequestHandler = async (req, res)
res.json(deltas); res.json(deltas);
} else if (missionReport.RewardInfo) { } else if (missionReport.RewardInfo) {
logger.debug(`classic mission completion, sending everything`); logger.debug(`classic mission completion, sending everything`);
const inventoryResponse = await getInventoryResponse(inventory, true, account.BuildLabel); const inventoryResponse = await getInventoryResponse(
inventory,
"xpBasedLevelCapDisabled" in req.query,
account.BuildLabel
);
res.json({ res.json({
InventoryJson: JSON.stringify(inventoryResponse), InventoryJson: JSON.stringify(inventoryResponse),
...deltas ...deltas
} satisfies IMissionInventoryUpdateResponse); } satisfies IMissionInventoryUpdateResponse);
} else { } else {
logger.debug(`no reward info, assuming this wasn't a mission completion and we should just sync inventory`); logger.debug(`no reward info, assuming this wasn't a mission completion and we should just sync inventory`);
const inventoryResponse = await getInventoryResponse(inventory, true, account.BuildLabel); const inventoryResponse = await getInventoryResponse(
inventory,
"xpBasedLevelCapDisabled" in req.query,
account.BuildLabel
);
res.json({ res.json({
InventoryJson: JSON.stringify(inventoryResponse) InventoryJson: JSON.stringify(inventoryResponse)
} satisfies IMissionInventoryUpdateResponseBackToDryDock); } satisfies IMissionInventoryUpdateResponseBackToDryDock);