Sha256: be65662fc9b40b0f4b492770987f8c0b93944fca36dce5e5f0bb2e73f0aa4298
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
module Workarea #Worker for mapp integration includes updating the user api. class MappIntegrationUpdateUserWorker include Sidekiq::Worker include Sidekiq::CallbacksWorker sidekiq_options( retry: true, enqueue_on: { Workarea::User => :update } ) #Triggers the perform method depending on the update action. def perform(id) mapp_integration_flag = Rails.application.secrets.mapp_integration[:flag] rescue nil if mapp_integration_flag == true update_user = Workarea::User.find(id) rescue nil Workarea::MappIntegration::MappIntegrationGateway.new.mapp_integration_for_update_user(update_user) if update_user.present? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-mapp_integration-0.1.1 | app/workers/workarea/mapp_integration_update_user_worker.rb |