From 672eddb999270676854e890798f6931411d6be04 Mon Sep 17 00:00:00 2001 From: rafaelsideguide <150964962+rafaelsideguide@users.noreply.github.com> Date: Tue, 14 May 2024 18:47:21 -0300 Subject: [PATCH] updated rpc --- apps/api/src/controllers/auth.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts index fb3a813b..74c62b8f 100644 --- a/apps/api/src/controllers/auth.ts +++ b/apps/api/src/controllers/auth.ts @@ -46,7 +46,8 @@ export async function supaAuthenticateUser( normalizedApi = parseApi(token); const { data, error } = await supabase_service.rpc( - 'get_key_and_price_id', { api_key: normalizedApi }); + 'get_key_and_price_id_2', { api_key: normalizedApi } + ); if (error) { console.error('Error fetching key and price_id:', error);