Skip to content

Commit e5242c2

Browse files
Flatten and include external ids in contact custom fields
This is mainly needed for the Spoke/Nationbuilder integration, so may as well keep it general for all external ids.
1 parent e36eb73 commit e5242c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/serializers/identity_spoke/spoke_member_sync_push_serializer.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ def custom_fields
3535
representative_name: area.representative_name
3636
}
3737
}
38+
@object.member_external_ids.each{ |external_id|
39+
data[external_id.system + "_id"] = external_id.external_id
40+
}
3841
data.to_json
3942
end
4043

0 commit comments

Comments
 (0)