Add parameters to unclaimed card helper logs
All checks were successful
Test / build (push) Successful in 44s
All checks were successful
Test / build (push) Successful in 44s
This commit is contained in:
parent
8eb33108f9
commit
4ea402bcd8
1 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ export default class GetUnclaimedCardsHelper {
|
||||||
.filter(x => !claimedCards.find(y => y.CardNumber == x.id));
|
.filter(x => !claimedCards.find(y => y.CardNumber == x.id));
|
||||||
|
|
||||||
if (!allCards) {
|
if (!allCards) {
|
||||||
AppLogger.LogError("CardDropHelperMetadata/GetRandomCardByRarityUnclaimed", "No cards found to randomise from");
|
AppLogger.LogError("CardDropHelperMetadata/GetRandomCardByRarityUnclaimed", `No cards found to randomise from, User Id: ${userId}, rarity: ${rarity}`);
|
||||||
|
|
||||||
return undefined;
|
return undefined;
|
||||||
};
|
};
|
||||||
|
@ -52,7 +52,7 @@ export default class GetUnclaimedCardsHelper {
|
||||||
const card = allCards[randomCardIndex];
|
const card = allCards[randomCardIndex];
|
||||||
|
|
||||||
if (!card) {
|
if (!card) {
|
||||||
AppLogger.LogError("CardDropHelperMetadata/GetRandomCardByRarityUnclaimed", `Card not found in index, ${randomCardIndex} of ${allCards.length}`);
|
AppLogger.LogError("CardDropHelperMetadata/GetRandomCardByRarityUnclaimed", `Card not found in index, ${randomCardIndex} of ${allCards.length}, User Id: ${userId}, rarity: ${rarity}`);
|
||||||
|
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ export default class GetUnclaimedCardsHelper {
|
||||||
.find(x => x.cards.includes(card));
|
.find(x => x.cards.includes(card));
|
||||||
|
|
||||||
if (!series) {
|
if (!series) {
|
||||||
AppLogger.LogError("CardDropHelperMetadata/GetRandomCardByRarityUnclaimed", `Series not found for card ${card.id}`);
|
AppLogger.LogError("CardDropHelperMetadata/GetRandomCardByRarityUnclaimed", `Series not found for card ${card.id}, User Id: ${userId}, rarity: ${rarity}`);
|
||||||
|
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue