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.

tweak

Steven Tey4f40b3d3e474
diff --git a/apps/web/app/api/callback/stripe/route.ts b/apps/web/app/api/callback/stripe/route.ts
index c14ebb2383..a07727a2aa 100644
--- a/apps/web/app/api/callback/stripe/route.ts
+++ b/apps/web/app/api/callback/stripe/route.ts
@@ -124,9 +124,9 @@ export const POST = async (req: Request) => {
if (!project) {
await log({
message:
- "Project with Stripe ID `" +
+ "Project with Stripe ID *`" +
stripeId +
- "` not found in Stripe webhook `customer.subscription.updated` callback",
+ "`* not found in Stripe webhook `customer.subscription.updated` callback",
type: "cron",
});
return;
@@ -193,7 +193,7 @@ export const POST = async (req: Request) => {
stripeId,
},
select: {
- name: true,
+ slug: true,
domains: true,
},
});
@@ -201,9 +201,9 @@ export const POST = async (req: Request) => {
if (!project) {
await log({
message:
- "Project with Stripe ID `" +
+ "Project with Stripe ID *`" +
stripeId +
- "` not found in Stripe webhook `customer.subscription.deleted` callback",
+ "`* not found in Stripe webhook `customer.subscription.deleted` callback",
type: "cron",
});
return;
@@ -231,7 +231,7 @@ export const POST = async (req: Request) => {
log({
message:
":cry: Project *`" +
- project.name +
+ project.slug +
"`* deleted their subscription",
type: "cron",
mention: true,