diff options
Diffstat (limited to 'app/services/bulk_create_integration_service.rb')
-rw-r--r-- | app/services/bulk_create_integration_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/bulk_create_integration_service.rb b/app/services/bulk_create_integration_service.rb index 8fbb7f4f347..70c77444f13 100644 --- a/app/services/bulk_create_integration_service.rb +++ b/app/services/bulk_create_integration_service.rb @@ -10,10 +10,10 @@ class BulkCreateIntegrationService end def execute - service_list = ServiceList.new(batch, integration_hash(:create), association).to_array + integration_list = Integrations::IntegrationList.new(batch, integration_hash(:create), association).to_array Integration.transaction do - results = bulk_insert(*service_list) + results = bulk_insert(*integration_list) if integration.data_fields_present? data_list = DataList.new(results, data_fields_hash(:create), integration.data_fields.class).to_array |