Skip to content

Commit

Permalink
make path absolute not relative
Browse files Browse the repository at this point in the history
  • Loading branch information
kutoft committed Oct 11, 2023
1 parent c1dd1e2 commit d40c62c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/api.stripe.webhook/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const action: ActionFunction = async ({ request }) => {
formData.set("type", PayPlanType.FreetierV0)
formData.set("subscription", "")

await fetch("/api/admin/update-plan", {
await fetch(`${url.origin}/api/admin/update-plan`, {
method: "post",
body: formData,
})
Expand Down

0 comments on commit d40c62c

Please sign in to comment.