app/models/maestrano/connector/rails/concerns/entity.rb in maestrano-connector-rails-2.0.2.pre.RC12 vs app/models/maestrano/connector/rails/concerns/entity.rb in maestrano-connector-rails-2.1.0
- old
+ new
@@ -328,10 +328,10 @@
# Send the external ids to connec if it was a creation
# or if there are some sub entities ids to send (completed_hash)
return if entities_to_send_to_connec.empty?
- # Build a batch op from an idmap and a competed hash
+ # Build a batch op from an idmap and a completed hash
# with either only the id, or the id + id references
proc = lambda do |entity|
id = {id: [Maestrano::Connector::Rails::ConnecHelper.id_hash(entity[:idmap].external_id, @organization)]}
body = entity[:completed_hash]&.merge(id) || id
batch_op('put', body, entity[:idmap].connec_id, self.class.normalized_connec_entity_name)