Skip to content

Commit fb298fb

Browse files
committed
fix(lifecycle): make shared file contexts readonly
1 parent 01b4ff6 commit fb298fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/sim/lib/workspaces/resource-handoff.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
} from '@/lib/workspaces/utils'
2323

2424
/** Private chat attachments keep their user's lifecycle even when stored under a workspace key. */
25-
const SHARED_FILE_CONTEXTS = ['workspace', 'knowledge-base', 'execution', 'chat']
25+
const SHARED_FILE_CONTEXTS = ['workspace', 'knowledge-base', 'execution', 'chat'] as const
2626

2727
/** Finds surviving containers from ownership references, including departures predating handoff. */
2828
export async function listSharedResourceWorkspaceIdsForUser(executor: DbOrTx, userId: string) {

0 commit comments

Comments
 (0)