From 458cdeb0cef116eb8ed3bb89a12e411c1246dd66 Mon Sep 17 00:00:00 2001 From: "joel@joellee.org" Date: Wed, 22 Jun 2022 15:50:11 +0800 Subject: [PATCH] fix: change default to public --- src/SupabaseClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SupabaseClient.ts b/src/SupabaseClient.ts index 6f15dde4..c03bb90b 100644 --- a/src/SupabaseClient.ts +++ b/src/SupabaseClient.ts @@ -103,7 +103,7 @@ export default class SupabaseClient< this.realtime = this._initRealtimeClient({ headers: this.headers, ...settings.realtime }) this.rest = new PostgrestClient(`${_supabaseUrl}/rest/v1`, { headers: this.headers, - schema: options?.db?.schema ?? '', + schema: options?.db?.schema ?? 'public', fetch: this.fetch, throwOnError: this.shouldThrowOnError, })