From 5d08c1ac35a59dedd2e98e80d6f2d167cd4ea25e Mon Sep 17 00:00:00 2001 From: Amirali Azimi Date: Sat, 31 Aug 2024 18:18:38 -0400 Subject: [PATCH] added blocking call for createOrRetrieveCustomer in get_stripe_url edge function (#92) --- supabase/functions/get_stripe_url/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supabase/functions/get_stripe_url/index.ts b/supabase/functions/get_stripe_url/index.ts index d44cfad..caaf77d 100644 --- a/supabase/functions/get_stripe_url/index.ts +++ b/supabase/functions/get_stripe_url/index.ts @@ -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 || "", });