Skip to content

Commit

Permalink
added blocking call for createOrRetrieveCustomer in get_stripe_url ed…
Browse files Browse the repository at this point in the history
…ge function (#92)
  • Loading branch information
Amiralizim authored Aug 31, 2024
1 parent 768e43d commit 5d08c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supabase/functions/get_stripe_url/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { posthog } from "../_shared/posthog.ts";

clientRequestHandlerWithUser(async (req, user) => {
const { price: priceId, return_url } = await req.json();
const stripeCustomerId = createOrRetrieveCustomer({
const stripeCustomerId = await createOrRetrieveCustomer({
uuid: user.id,
email: user.email || "",
});
Expand Down

0 comments on commit 5d08c1a

Please sign in to comment.