Skip to content

Commit c4b9311

Browse files
waleedlatif1claude
andcommitted
fix(attio): wire new trigger extractors into dispatcher, trim targetUrl
Add extractAttioListData and extractAttioWorkspaceMemberData dispatch branches in utils.server.ts so the four new triggers return correct outputs instead of falling through to generic extraction. Also add missing .trim() on targetUrl in update_webhook. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 31045ab commit c4b9311

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

apps/sim/lib/webhooks/utils.server.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,8 @@ export async function formatWebhookInput(
13111311
extractAttioCommentData,
13121312
extractAttioListEntryData,
13131313
extractAttioListEntryUpdatedData,
1314+
extractAttioListData,
1315+
extractAttioWorkspaceMemberData,
13141316
extractAttioGenericData,
13151317
} = await import('@/triggers/attio/utils')
13161318

@@ -1341,6 +1343,16 @@ export async function formatWebhookInput(
13411343
if (triggerId === 'attio_list_entry_created' || triggerId === 'attio_list_entry_deleted') {
13421344
return extractAttioListEntryData(body)
13431345
}
1346+
if (
1347+
triggerId === 'attio_list_created' ||
1348+
triggerId === 'attio_list_updated' ||
1349+
triggerId === 'attio_list_deleted'
1350+
) {
1351+
return extractAttioListData(body)
1352+
}
1353+
if (triggerId === 'attio_workspace_member_created') {
1354+
return extractAttioWorkspaceMemberData(body)
1355+
}
13441356
return extractAttioGenericData(body)
13451357
}
13461358

apps/sim/tools/attio/update_webhook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const attioUpdateWebhookTool: ToolConfig<
5555
}),
5656
body: (params) => {
5757
const data: Record<string, unknown> = {}
58-
if (params.targetUrl) data.target_url = params.targetUrl
58+
if (params.targetUrl) data.target_url = params.targetUrl.trim()
5959
if (params.subscriptions) {
6060
try {
6161
data.subscriptions =

0 commit comments

Comments
 (0)