The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: update update profile api
phamhieucec5d78881c3
diff --git a/studio/data/profile/profile-update-mutation.ts b/studio/data/profile/profile-update-mutation.tsindex b1b9ba67252..d4633f184bb 100644--- a/studio/data/profile/profile-update-mutation.ts+++ b/studio/data/profile/profile-update-mutation.ts@@ -1,5 +1,5 @@import { useMutation, UseMutationOptions, useQueryClient } from '@tanstack/react-query'-import { post } from 'lib/common/fetch'+import { patch } from 'lib/common/fetch'import { API_URL } from 'lib/constants'import { profileKeys } from './keys'@@ -9,7 +9,7 @@ export type ProfileUpdateVariables = {}export async function updateProfile({ firstName, lastName }: ProfileUpdateVariables) {- const response = await post(`${API_URL}/profile/update`, {+ const response = await patch(`${API_URL}/profile`, {first_name: firstName,last_name: lastName,})