We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7504a6a commit 39f86bdCopy full SHA for 39f86bd
1 file changed
apps/sim/tools/apollo/account_bulk_update.ts
@@ -67,6 +67,11 @@ export const apolloAccountBulkUpdateTool: ToolConfig<
67
if (params.account_attributes && params.account_attributes.length > 0) {
68
body.account_attributes = params.account_attributes
69
}
70
+ if (!body.account_ids && !body.account_attributes) {
71
+ throw new Error(
72
+ 'Apollo account bulk update requires either account_ids or account_attributes to be provided'
73
+ )
74
+ }
75
return body
76
},
77
0 commit comments