Skip to content

Commit 280d73a

Browse files
committed
improvement(findymail): exclude operation from params transform
Match the convention used by enrich/apify/box/calendly — destructure out operation before forwarding the rest to the tool call, so the operation key doesn't leak into the tool payload.
1 parent 4415efe commit 280d73a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/sim/blocks/blocks/findymail.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,9 @@ export const FindymailBlock: BlockConfig<FindymailResponse> = {
229229
}
230230
},
231231
params: (params) => {
232+
const { operation: _operation, ...rest } = params
232233
const result: Record<string, unknown> = {}
233-
for (const [key, value] of Object.entries(params)) {
234+
for (const [key, value] of Object.entries(rest)) {
234235
if (value === undefined || value === null || value === '') continue
235236
if (key === 'count') {
236237
const n = Number(value)

0 commit comments

Comments
 (0)