From 3588a0e2c69c16acda2d725910454fe0021f32bf Mon Sep 17 00:00:00 2001 From: Jay Meistrich Date: Sat, 7 Sep 2024 23:23:43 +0200 Subject: [PATCH] fix: supabase types were not defaulting to public schema --- src/sync-plugins/supabase.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sync-plugins/supabase.ts b/src/sync-plugins/supabase.ts index 1783cd22..2cd8fe58 100644 --- a/src/sync-plugins/supabase.ts +++ b/src/sync-plugins/supabase.ts @@ -74,7 +74,7 @@ export interface SyncedSupabaseConfiguration interface SyncedSupabaseProps< Client extends SupabaseClient, Collection extends SupabaseCollectionOf, - SchemaName extends SchemaNameOf, + SchemaName extends SchemaNameOf = 'public', TOption extends CrudAsOption = 'object', TRemote extends SupabaseRowOf = SupabaseRowOf, TLocal = TRemote, @@ -139,7 +139,7 @@ function wrapSupabaseFn(fn: (...args: any) => PromiseLike) { export function syncedSupabase< Client extends SupabaseClient, Collection extends SupabaseCollectionOf & string, - SchemaName extends SchemaNameOf, + SchemaName extends SchemaNameOf = 'public', AsOption extends CrudAsOption = 'object', TRemote extends SupabaseRowOf = SupabaseRowOf, TLocal = TRemote,