diff --git a/app/models/transaction/background_job.rb b/app/models/transaction/background_job.rb index 1668a9012..c273f5211 100644 --- a/app/models/transaction/background_job.rb +++ b/app/models/transaction/background_job.rb @@ -24,6 +24,7 @@ class Transaction::BackgroundJob Setting.where(area: 'Transaction::Backend').order(:name).each {|setting| backend = Setting.get(setting.name) begin + UserInfo.current_user_id = 1 integration = Kernel.const_get(backend).new(@item, @params) integration.perform rescue => e diff --git a/app/models/transaction/clearbit_enrichment.rb b/app/models/transaction/clearbit_enrichment.rb index 8f45a8c31..c42a6c731 100644 --- a/app/models/transaction/clearbit_enrichment.rb +++ b/app/models/transaction/clearbit_enrichment.rb @@ -162,8 +162,6 @@ class Transaction::ClearbitEnrichment if !organization organization = Organization.new( shared: config['organization_shared'], - updated_by_id: 1, - created_by_id: 1, ) organization_sync_values.each {|destination, value| attribute = destination.sub(/^organization\./, '')