oversight
This commit is contained in:
parent
ab111d5c57
commit
998808505d
@ -335,10 +335,9 @@ const handleCreditBundlePurchase = async (
|
||||
typeName: string,
|
||||
inventory: TInventoryDatabaseDocument
|
||||
): 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;
|
||||
await inventory.save();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user