chore: update vendor purchase response
All checks were successful
Build / build (22) (push) Successful in 39s
Build / build (20) (push) Successful in 1m13s
Build Docker image / docker (push) Successful in 30s
Build / build (18) (push) Successful in 1m21s

This commit is contained in:
Sainan 2025-03-28 00:17:33 +01:00
parent 692dfaf0a5
commit aad3a7bcf7
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -44,7 +44,8 @@ export type IInventoryChanges = {
MiscItems?: IMiscItem[]; MiscItems?: IMiscItem[];
EmailItems?: ITypeCount[]; EmailItems?: ITypeCount[];
Nemesis?: Partial<INemesisClient>; Nemesis?: Partial<INemesisClient>;
RecentVendorPurchases?: IRecentVendorPurchaseClient; NewVendorPurchase?: IRecentVendorPurchaseClient; // >= 38.5.0
RecentVendorPurchases?: IRecentVendorPurchaseClient; // < 38.5.0
} & Record< } & Record<
Exclude< Exclude<
string, string,