Skip to content

Commit

Permalink
don't use salesforce message queue for lupo test
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Apr 22, 2021
1 parent 76e35fc commit 4e00a1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/concerns/indexable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ module Indexable
end
elsif instance_of?(Event)
OtherDoiJob.perform_later(dois_to_import)
elsif instance_of?(Provider) && !Rails.env.test?
elsif instance_of?(Provider) && (Rails.env.production? || ENV["ES_PREFIX"] == "stage")
send_provider_export_message(to_jsonapi.merge(slack_output: true))
elsif instance_of?(Client) && !Rails.env.test?
elsif instance_of?(Client) && (Rails.env.production? || ENV["ES_PREFIX"] == "stage")
send_client_export_message(to_jsonapi.merge(slack_output: true))
elsif instance_of?(Contact) && !Rails.env.test?
elsif instance_of?(Contact) && (Rails.env.production? || ENV["ES_PREFIX"] == "stage")
send_contact_export_message(to_jsonapi.merge(slack_output: true))
end
end
Expand Down

0 comments on commit 4e00a1d

Please sign in to comment.