From 3ba99734e774b79240a626530ae77bc95b85c1e2 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Tue, 6 May 2025 15:15:37 +0200 Subject: [PATCH] actually, this is needed for a few more versions... --- src/controllers/api/inventoryController.ts | 3 +-- src/types/inventoryTypes/inventoryTypes.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index 2a6a3ef0..10d1364a 100644 --- a/src/controllers/api/inventoryController.ts +++ b/src/controllers/api/inventoryController.ts @@ -315,8 +315,7 @@ export const getInventoryResponse = async ( inventoryResponse.Nemesis = undefined; } - if (buildLabel && version_compare(buildLabel, "2014.10.29.18.19") < 0) { - // U14 + if (buildLabel && version_compare(buildLabel, "2018.02.22.14.34") < 0) { const personalRoomsDb = await getPersonalRooms(inventory.accountOwnerId.toString()); const personalRooms = personalRoomsDb.toJSON(); inventoryResponse.Ship = personalRooms.Ship; diff --git a/src/types/inventoryTypes/inventoryTypes.ts b/src/types/inventoryTypes/inventoryTypes.ts index dafb50bf..23b8ec38 100644 --- a/src/types/inventoryTypes/inventoryTypes.ts +++ b/src/types/inventoryTypes/inventoryTypes.ts @@ -374,7 +374,7 @@ export interface IInventoryClient extends IDailyAffiliations, InventoryClientEqu BrandedSuits?: IOid[]; LockedWeaponGroup?: ILockedWeaponGroupClient; HubNpcCustomizations?: IHubNpcCustomization[]; - Ship?: IOrbiter; // U14 (response only) + Ship?: IOrbiter; // U22 and below, response only } export interface IAffiliation {