chore: fix shape of RecentVendorPurchases in InventoryChanges

This commit is contained in:
Sainan 2025-03-27 16:45:33 +01:00
parent 2b9eb1844d
commit ba795150a9
2 changed files with 12 additions and 12 deletions

View File

@ -99,8 +99,7 @@ export const handlePurchase = async (
Expiry: new Date(parseInt(offer.Expiry.$date.$numberLong))
});
}
prePurchaseInventoryChanges.RecentVendorPurchases = [
{
prePurchaseInventoryChanges.RecentVendorPurchases = {
VendorType: manifest.VendorInfo.TypeName,
PurchaseHistory: [
{
@ -109,8 +108,7 @@ export const handlePurchase = async (
Expiry: offer.Expiry
}
]
}
];
};
}
purchaseRequest.PurchaseParams.Quantity *= offer.QuantityMultiplier;
} else {

View File

@ -5,6 +5,7 @@ import {
IMiscItem,
INemesisClient,
ITypeCount,
IRecentVendorPurchaseClient,
TEquipmentKey
} from "./inventoryTypes/inventoryTypes";
@ -43,6 +44,7 @@ export type IInventoryChanges = {
MiscItems?: IMiscItem[];
EmailItems?: ITypeCount[];
Nemesis?: Partial<INemesisClient>;
RecentVendorPurchases?: IRecentVendorPurchaseClient;
} & Record<
Exclude<
string,