The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: split to two diff endpoits
dragarcia4c40be3fa724
diff --git a/studio/data/database/backup-restore-mutation.ts b/studio/data/database/backup-restore-mutation.tsindex 9b4db4a4900..e8f27f9e628 100644--- a/studio/data/database/backup-restore-mutation.ts+++ b/studio/data/database/backup-restore-mutation.ts@@ -14,9 +14,18 @@ export type BackupRestoreVariables = {export type Backup = components['schemas']['Backup']export async function restoreFromBackup({ ref, backup }: BackupRestoreVariables) {+ if (backup.isPhysicalBackup) {+ const { data, error } = await post('/platform/database/{ref}/backups/restore-physical', {+ params: { path: { ref } },+ body: { id: backup.id, recovery_time_target: backup.inserted_at },+ })+ if (error) throw error+ return data+ }+const { data, error } = await post('/platform/database/{ref}/backups/restore', {params: { path: { ref } },- body: { id: backup.id, isPhysicalBackup: backup.isPhysicalBackup },+ body: { id: backup.id },})if (error) throw errorreturn data