Skip to content

Commit ecd8e9a

Browse files
committed
fix(apollo): drop bare-id merging in bulk update migration to avoid empty attribute objects
1 parent e7005da commit ecd8e9a

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

apps/sim/blocks/blocks/apollo.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,9 +1077,8 @@ Return ONLY the timestamp string in ISO 8601 format - no explanations, no quotes
10771077
if (params.operation === 'contact_bulk_update') {
10781078
const { ids, attributes } = splitBulkUpdateInput(parsedParams.contacts)
10791079
if (attributes) {
1080-
const merged = ids ? [...attributes, ...ids.map((id) => ({ id }))] : attributes
10811080
if (parsedParams.contact_attributes === undefined) {
1082-
parsedParams.contact_attributes = merged
1081+
parsedParams.contact_attributes = attributes
10831082
}
10841083
} else if (ids && parsedParams.contact_ids === undefined) {
10851084
parsedParams.contact_ids = ids
@@ -1090,9 +1089,8 @@ Return ONLY the timestamp string in ISO 8601 format - no explanations, no quotes
10901089
if (params.operation === 'account_bulk_update') {
10911090
const { ids, attributes } = splitBulkUpdateInput(parsedParams.accounts)
10921091
if (attributes) {
1093-
const merged = ids ? [...attributes, ...ids.map((id) => ({ id }))] : attributes
10941092
if (parsedParams.account_attributes === undefined) {
1095-
parsedParams.account_attributes = merged
1093+
parsedParams.account_attributes = attributes
10961094
}
10971095
} else if (ids && parsedParams.account_ids === undefined) {
10981096
parsedParams.account_ids = ids

0 commit comments

Comments
 (0)