sanity check
All checks were successful
Build / build (pull_request) Successful in 1m16s

This commit is contained in:
2025-11-19 08:21:05 +01:00
parent 7026bfe9a7
commit 508009952a

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."