mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
Patch lints (#40783)
This commit is contained in:
1 parent
3969553a35
commit
27200aa52a
1 file changed
+1
-2
@@ -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()}
|
||||
|
||||
Reference in new issue
Block a user