Skip to content

Commit 7538b4c

Browse files
committed
ack PR comments
1 parent 309df92 commit 7538b4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/sim/tools/supabase/get_row.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const getRowTool: ToolConfig<SupabaseGetRowParams, SupabaseGetRowResponse
5151
url: (params) => {
5252
// Construct the URL for the Supabase REST API
5353
const selectColumns = params.select?.trim() || '*'
54-
let url = `https://${params.projectId}.supabase.co/rest/v1/${params.table}?select=${selectColumns}`
54+
let url = `https://${params.projectId}.supabase.co/rest/v1/${params.table}?select=${encodeURIComponent(selectColumns)}`
5555

5656
// Add filters (required for get_row) - using PostgREST syntax
5757
if (params.filter?.trim()) {

apps/sim/tools/supabase/query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const queryTool: ToolConfig<SupabaseQueryParams, SupabaseQueryResponse> =
6363
url: (params) => {
6464
// Construct the URL for the Supabase REST API
6565
const selectColumns = params.select?.trim() || '*'
66-
let url = `https://${params.projectId}.supabase.co/rest/v1/${params.table}?select=${selectColumns}`
66+
let url = `https://${params.projectId}.supabase.co/rest/v1/${params.table}?select=${encodeURIComponent(selectColumns)}`
6767

6868
// Add filters if provided - using PostgREST syntax
6969
if (params.filter?.trim()) {

0 commit comments

Comments
 (0)