From 27200aa52aa64e4a5468a3371d311ed728467ff8 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Wed, 26 Nov 2025 00:16:45 +0800 Subject: [PATCH] Patch lints (#40783) --- apps/studio/lib/api/self-hosted/lints.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/studio/lib/api/self-hosted/lints.ts b/apps/studio/lib/api/self-hosted/lints.ts index 1add108301d..8dbf43a6917 100644 --- a/apps/studio/lib/api/self-hosted/lints.ts +++ b/apps/studio/lib/api/self-hosted/lints.ts @@ -18,10 +18,9 @@ export type ResponseData = paths['/platform/projects/{ref}/run-lints']['get']['responses']['200']['content']['application/json'] export const enrichLintsQuery = (query: string, exposedSchemas?: string) => { - const literalSchemas = exposedSchemas ? `'${exposedSchemas}'` : '' return ` set pg_stat_statements.track = none; -set local pgrst.db_schemas = ${literalSchemas}; +${!!exposedSchemas ? `set local pgrst.db_schemas = '${exposedSchemas}';` : ''} -- source: dashboard -- user: ${'self host'} -- date: ${new Date().toISOString()}