chore: assert quantity is 1 if otherwise ignored in addItem #3051

Merged
Sainan merged 3 commits from addItem-qty-checks into main 2025-11-20 00:27:14 -08:00
Showing only changes of commit 508009952a - Show all commits

View File

@@ -554,6 +554,9 @@ const handleBoosterPackPurchase = async (
BoosterPackItems: "",
InventoryChanges: {}
};
if (quantity < 1) {
throw new Error(`invalid quantity for booster pack purchase: ${quantity}`);
}
if (quantity > 100) {
throw new Error(
"attempt to roll over 100 booster packs in a single go. possible but unlikely to be desirable for the user or the server."