Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Fixed stripe webhook issue

Steven Teybbb62fa44ed6
diff --git a/pages/api/stripe/webhook.ts b/pages/api/stripe/webhook.ts
index c6dab82b02..38c9530021 100644
--- a/pages/api/stripe/webhook.ts
+++ b/pages/api/stripe/webhook.ts
@@ -140,7 +140,7 @@ export default async function webhookHandler(
pipeline.del(`root:${domain}`);
});
- const response = await Promise.all([
+ await Promise.all([
prisma.project.update({
where: {
stripeId,
@@ -152,7 +152,9 @@ export default async function webhookHandler(
}),
pipeline.exec(),
log(
- ":cry: Project *`" + name + "`* deleted their subscription",
+ ":cry: Project *`" +
+ project.name +
+ "`* deleted their subscription",
"cron",
true,
),