Skip to content

Commit c0c71fe

Browse files
tonychang04claude
andcommitted
fix(insforge): remove unused paths array parsing logic
The storage_delete tool uses singular 'path', not 'paths' array. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 31e8b55 commit c0c71fe

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

apps/sim/blocks/blocks/insforge.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export const InsForgeBlock: BlockConfig<InsForgeBaseResponse> = {
414414
},
415415
params: (params) => {
416416
// eslint-disable-next-line @typescript-eslint/no-unused-vars
417-
const { operation, data, paths, body, messages, upsert, ...rest } = params
417+
const { operation, data, body, messages, upsert, ...rest } = params
418418

419419
// Parse JSON data if it's a string
420420
let parsedData
@@ -429,19 +429,6 @@ export const InsForgeBlock: BlockConfig<InsForgeBaseResponse> = {
429429
parsedData = data
430430
}
431431

432-
// Handle paths array for storage delete
433-
let parsedPaths
434-
if (paths && typeof paths === 'string' && paths.trim()) {
435-
try {
436-
parsedPaths = JSON.parse(paths)
437-
} catch (parseError) {
438-
const errorMsg = parseError instanceof Error ? parseError.message : 'Unknown JSON error'
439-
throw new Error(`Invalid paths format: ${errorMsg}`)
440-
}
441-
} else if (paths && Array.isArray(paths)) {
442-
parsedPaths = paths
443-
}
444-
445432
// Handle body for function invoke
446433
let parsedBody
447434
if (body && typeof body === 'string' && body.trim()) {
@@ -478,10 +465,6 @@ export const InsForgeBlock: BlockConfig<InsForgeBaseResponse> = {
478465
result.data = parsedData
479466
}
480467

481-
if (parsedPaths !== undefined) {
482-
result.paths = parsedPaths
483-
}
484-
485468
if (parsedBody !== undefined) {
486469
result.body = parsedBody
487470
}

0 commit comments

Comments
 (0)