Commit ef8aa5da authored by Arturo Herrero's avatar Arturo Herrero

Rename services to batch for consistency

parent 88d7f03b
......@@ -11,9 +11,9 @@ class PropagateIntegrationInheritDescendantWorker
integration = Service.find_by_id(integration_id)
return unless integration
services = Service.inherited_descendant_integrations_for(integration).where(id: min_id..max_id)
batch = Service.inherited_descendant_integrations_for(integration).where(id: min_id..max_id)
BulkUpdateIntegrationService.new(integration, services).execute
BulkUpdateIntegrationService.new(integration, batch).execute
end
# rubocop: enable CodeReuse/ActiveRecord
end
......@@ -11,9 +11,9 @@ class PropagateIntegrationInheritWorker
integration = Service.find_by_id(integration_id)
return unless integration
services = Service.where(id: min_id..max_id).by_type(integration.type).inherit_from_id(integration.id)
batch = Service.where(id: min_id..max_id).by_type(integration.type).inherit_from_id(integration.id)
BulkUpdateIntegrationService.new(integration, services).execute
BulkUpdateIntegrationService.new(integration, batch).execute
end
# rubocop: enable CodeReuse/ActiveRecord
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment