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.

logAndRespond

Steven Tey1cc05f244b85
diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts
index 0d094e8aec..58399c4a9c 100644
--- a/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts
+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts
@@ -1,4 +1,5 @@
import { stripe } from "@/lib/stripe";
+import { logAndRespond } from "app/(ee)/api/cron/utils";
import { withAxiom } from "next-axiom";
import Stripe from "stripe";
import { accountApplicationDeauthorized } from "./account-application-deauthorized";
@@ -76,7 +77,5 @@ export const POST = withAxiom(async (req: Request) => {
break;
}
- return new Response(response, {
- status: 200,
- });
+ return logAndRespond(response);
});