Frank 3 недель назад
Родитель
Сommit
cd46f22d51
1 измененных файлов с 0 добавлено и 2 удалено
  1. 0 2
      packages/console/app/src/routes/stripe/webhook.ts

+ 0 - 2
packages/console/app/src/routes/stripe/webhook.ts

@@ -196,7 +196,6 @@ export async function POST(input: APIEvent) {
       }
       }
     }
     }
     if (body.type === "customer.subscription.deleted") {
     if (body.type === "customer.subscription.deleted") {
-      /*
       const subscriptionID = body.data.object.id
       const subscriptionID = body.data.object.id
       if (!subscriptionID) throw new Error("Subscription ID not found")
       if (!subscriptionID) throw new Error("Subscription ID not found")
 
 
@@ -206,7 +205,6 @@ export async function POST(input: APIEvent) {
       } else if (productID === BlackData.productID()) {
       } else if (productID === BlackData.productID()) {
         await Billing.unsubscribeBlack({ subscriptionID })
         await Billing.unsubscribeBlack({ subscriptionID })
       }
       }
-        */
     }
     }
     if (body.type === "invoice.payment_succeeded") {
     if (body.type === "invoice.payment_succeeded") {
       if (
       if (