Skip to content

Commit 8947057

Browse files
committed
fix(supabase): include last_accessed_at as a storage list sort option
The Storage list API accepts last_accessed_at for sortBy; add it to the tool description and the block dropdown so the surfaced options match the API.
1 parent 7687d28 commit 8947057

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

apps/sim/blocks/blocks/supabase.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ Return ONLY the PostgREST filter expression - no explanations, no markdown, no e
799799
{ label: 'Name', id: 'name' },
800800
{ label: 'Created At', id: 'created_at' },
801801
{ label: 'Updated At', id: 'updated_at' },
802+
{ label: 'Last Accessed At', id: 'last_accessed_at' },
802803
],
803804
value: () => 'name',
804805
condition: { field: 'operation', value: 'storage_list' },

apps/sim/tools/supabase/storage_list.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ export const storageListTool: ToolConfig<SupabaseStorageListParams, SupabaseStor
4747
type: 'string',
4848
required: false,
4949
visibility: 'user-or-llm',
50-
description: 'Column to sort by: name, created_at, updated_at (default: name)',
50+
description:
51+
'Column to sort by: name, created_at, updated_at, last_accessed_at (default: name)',
5152
},
5253
sortOrder: {
5354
type: 'string',

0 commit comments

Comments
 (0)