fix quantity in history entry
All checks were successful
Build / build (18) (push) Successful in 46s
Build / build (22) (push) Successful in 1m3s
Build / build (20) (push) Successful in 59s
Build / build (18) (pull_request) Successful in 47s
Build / build (20) (pull_request) Successful in 1m5s
Build / build (22) (pull_request) Successful in 1m1s

This commit is contained in:
Sainan 2025-03-11 16:47:51 +01:00
parent 163aeb58ee
commit 8e0ff9d7f6

View File

@ -69,7 +69,6 @@ export const handlePurchase = async (
inventoryChanges
);
}
purchaseRequest.PurchaseParams.Quantity *= offer.QuantityMultiplier;
if (!config.noVendorPurchaseLimits) {
inventory.RecentVendorPurchases ??= [];
let vendorPurchases = inventory.RecentVendorPurchases.find(
@ -110,6 +109,7 @@ export const handlePurchase = async (
}
];
}
purchaseRequest.PurchaseParams.Quantity *= offer.QuantityMultiplier;
} else if (!ExportVendors[purchaseRequest.PurchaseParams.SourceId!]) {
throw new Error(`unknown vendor: ${purchaseRequest.PurchaseParams.SourceId!}`);
}