chore: some initial handling of legacy oid format #2033

Merged
Sainan merged 6 commits from legacy-oid into main 2025-05-09 00:20:55 -07:00
Showing only changes of commit 061e858af3 - Show all commits

View File

@ -318,8 +318,8 @@ export const getInventoryResponse = async (
const personalRooms = personalRoomsDb.toJSON<IPersonalRoomsClient>();
inventoryResponse.Ship = personalRooms.Ship;
if (version_compare(buildLabel, "2017.03.03.17.01") < 0) {
// U19.4 and below use $id instead of $oid
if (version_compare(buildLabel, "2016.12.21.19.13") <= 0) {
// U19.5 and below use $id instead of $oid
for (const category of equipmentKeys) {
for (const item of inventoryResponse[category]) {
toLegacyOid(item.ItemId);