oversight
This commit is contained in:
parent
ab111d5c57
commit
998808505d
@ -335,10 +335,9 @@ const handleCreditBundlePurchase = async (
|
|||||||
typeName: string,
|
typeName: string,
|
||||||
inventory: TInventoryDatabaseDocument
|
inventory: TInventoryDatabaseDocument
|
||||||
): Promise<IPurchaseResponse> => {
|
): Promise<IPurchaseResponse> => {
|
||||||
const bundleName = typeName.split("/").pop();
|
if (typeName && typeName in creditBundles) {
|
||||||
|
const creditsAmount = creditBundles[typeName];
|
||||||
|
|
||||||
if (bundleName && bundleName in creditBundles) {
|
|
||||||
const creditsAmount = creditBundles[bundleName];
|
|
||||||
inventory.RegularCredits += creditsAmount;
|
inventory.RegularCredits += creditsAmount;
|
||||||
await inventory.save();
|
await inventory.save();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user