feat: implement CreditBundle purchases #989

Merged
OrdisPrime merged 5 commits from neon/SpaceNinjaServer:credit-bundles into main 2025-02-23 03:53:57 -08:00
Showing only changes of commit af7df53799 - Show all commits

View File

@ -334,7 +334,7 @@ const handleCreditBundlePurchase = async (
typeName: string, typeName: string,
inventory: TInventoryDatabaseDocument inventory: TInventoryDatabaseDocument
): Promise<IPurchaseResponse> => { ): Promise<IPurchaseResponse> => {
const bundleName = typeName.split(typeName).pop(); const bundleName = typeName.split("/").pop();
let creditsAmount = 0; let creditsAmount = 0;
// CreditBundleA = 50.000 credits or CreditBundleC = 175.000 credits // CreditBundleA = 50.000 credits or CreditBundleC = 175.000 credits