chore: improve handling of RJ interstitial missionInventoryUpdate
All checks were successful
Build / build (pull_request) Successful in 1m2s

InventoryJson should only be returned when going back to dojo, in which case RJ is also not present in the request anymore.
This commit is contained in:
Sainan 2025-08-09 03:55:48 +02:00
parent 679752633a
commit abc450b48c
2 changed files with 8 additions and 1 deletions

View File

@ -98,8 +98,14 @@ export const missionInventoryUpdateController: RequestHandler = async (req, res)
const inventoryResponse = await getInventoryResponse(inventory, true, account.BuildLabel);
//TODO: figure out when to send inventory. it is needed for many cases.
if (missionReport.RJ) {
logger.debug(`railjack interstitial request, sending only deltas`, {
InventoryChanges: inventoryChanges,
AffiliationMods
});
}
res.json({
InventoryJson: JSON.stringify(inventoryResponse),
InventoryJson: missionReport.RJ ? JSON.stringify(inventoryResponse) : undefined,
InventoryChanges: inventoryChanges,
MissionRewards,
...credits,

View File

@ -148,6 +148,7 @@ export type IMissionInventoryUpdateRequest = {
MultiProgress: unknown[];
}[];
InvasionProgress?: IInvasionProgressClient[];
RJ?: boolean;
ConquestMissionsCompleted?: number;
duviriSuitSelection?: string;
duviriPistolSelection?: string;