chore: improve handling of RJ interstitial missionInventoryUpdate (#2600)
All checks were successful
Build Docker image / docker-arm64 (push) Successful in 55s
Build / build (push) Successful in 59s
Build Docker image / docker-amd64 (push) Successful in 53s

InventoryJson should only be returned when going back to dojo, in which case RJ is also not present in the request anymore.

Reviewed-on: #2600
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-08-09 03:38:10 -07:00 committed by Sainan
parent 679752633a
commit a4922d4c35
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 ? undefined : JSON.stringify(inventoryResponse),
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;