fix: acquisition of armory cache from daily tribute #2990

Merged
Sainan merged 2 commits from armory-cache into main 2025-11-06 00:17:11 -08:00
Showing only changes of commit 47dc091a22 - Show all commits

View File

@@ -515,7 +515,9 @@ const handleSlotPurchase = (
): IPurchaseResponse => {
logger.debug(`slot name ${slotPurchaseNameFull}`);
const slotPurchaseName = slotPurchaseNameFull.substring(slotPurchaseNameFull.lastIndexOf("/") + 1);
if (!(slotPurchaseName in slotPurchaseNameToSlotName)) throw new Error(`invalid slot purchase name ${slotPurchaseName}`);
if (!(slotPurchaseName in slotPurchaseNameToSlotName)) {
throw new Error(`invalid slot purchase name ${slotPurchaseName}`);
}
logger.debug(`slot purchase name ${slotPurchaseName}`);
const slotName = slotPurchaseNameToSlotName[slotPurchaseName].name;