We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6db3db commit b8b7191Copy full SHA for b8b7191
apps/sim/tools/utils.server.ts
@@ -16,8 +16,8 @@ const logger = createLogger('ToolsUtils')
16
17
export interface GetToolAsyncContext {
18
workflowId?: string
19
- userId?: string
20
- workspaceId?: string
+ userId: string
+ workspaceId: string
21
}
22
23
/**
@@ -110,11 +110,6 @@ async function fetchCustomToolFromDB(
110
const identifier = customToolId.replace('custom_', '')
111
112
try {
113
- if (!userId) {
114
- logger.error(`Cannot fetch custom tool without userId: ${identifier}`)
115
- return undefined
116
- }
117
-
118
const customTool = await getCustomToolByIdOrTitle({
119
identifier,
120
userId,
0 commit comments