Skip to content

Commit 7c16bf0

Browse files
committed
update webhook for polar
1 parent 4d2a13e commit 7c16bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/routes/api/wh/polar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const APIRoute = createAPIFileRoute("/api/wh/polar")({
1313
POST: async ({ request }) => {
1414
try {
1515
const event = validateEvent(
16-
await request.json(),
16+
await request.text(),
1717
getHeaders() as Record<string, string>,
1818
env.POLAR_WEBHOOK_SECRET
1919
);

0 commit comments

Comments
 (0)