返回提交历史
Modified
src/services/purchaseService.ts
+2
-1
Modified
src/types/purchaseTypes.ts
+2
-1
XFEstudio/SpaceNinjaServer
chore: update vendor purchase response
aad3a7bc
代码差异
2 个文件
+4
-2
@@ -99,7 +99,7 @@ export const handlePurchase = async (
99
99
Expiry: new Date(parseInt(offer.Expiry.$date.$numberLong))
100
100
});
101
101
}
102
prePurchaseInventoryChanges.RecentVendorPurchases = {
102
prePurchaseInventoryChanges.NewVendorPurchase = {
103
103
VendorType: manifest.VendorInfo.TypeName,
104
104
PurchaseHistory: [
105
105
{
@@ -109,6 +109,7 @@ export const handlePurchase = async (
109
109
}
110
110
]
111
111
};
112
prePurchaseInventoryChanges.RecentVendorPurchases = prePurchaseInventoryChanges.NewVendorPurchase;
112
113
}
113
114
purchaseRequest.PurchaseParams.Quantity *= offer.QuantityMultiplier;
114
115
} else {
@@ -44,7 +44,8 @@ export type IInventoryChanges = {
44
44
MiscItems?: IMiscItem[];
45
45
EmailItems?: ITypeCount[];
46
46
Nemesis?: Partial<INemesisClient>;
47
RecentVendorPurchases?: IRecentVendorPurchaseClient;
47
NewVendorPurchase?: IRecentVendorPurchaseClient; // >= 38.5.0
48
RecentVendorPurchases?: IRecentVendorPurchaseClient; // < 38.5.0
48
49
} & Record<
49
50
Exclude<
50
51
string,