Sha256: 581b24b8416fa252bf683c34969b945194a4c6c2ca7674bef95ddcea5b15e1f8

Contents?: true

Size: 357 Bytes

Versions: 14

Compression:

Stored size: 357 Bytes

Contents

module DiscoApp::Concerns::SynchroniseUsersJob
  extend ActiveSupport::Concern

  def perform(_shop)
    begin
      users = @shop.with_api_context {
        ShopifyAPI::User.all
      }
    rescue ActiveResource::UnauthorizedAccess => e
      Rollbar.error(e) and return
    end
    users.each { |user| DiscoApp::User.create_user(user, @shop) }
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release app/jobs/disco_app/concerns/synchronise_users_job.rb
disco_app-0.13.6 app/jobs/disco_app/concerns/synchronise_users_job.rb
disco_app-0.13.7 app/jobs/disco_app/concerns/synchronise_users_job.rb
disco_app-0.13.8 app/jobs/disco_app/concerns/synchronise_users_job.rb
disco_app-0.14.1 app/jobs/disco_app/concerns/synchronise_users_job.rb
disco_app-0.14.2 app/jobs/disco_app/concerns/synchronise_users_job.rb
disco_app-0.15.0 app/jobs/disco_app/concerns/synchronise_users_job.rb
disco_app-0.16.0 app/jobs/disco_app/concerns/synchronise_users_job.rb
disco_app-0.14.4 app/jobs/disco_app/concerns/synchronise_users_job.rb
disco_app-0.14.3 app/jobs/disco_app/concerns/synchronise_users_job.rb
disco_app-0.16.1 app/jobs/disco_app/concerns/synchronise_users_job.rb
disco_app-0.15.2 app/jobs/disco_app/concerns/synchronise_users_job.rb
disco_app-0.14.0 app/jobs/disco_app/concerns/synchronise_users_job.rb
disco_app-0.13.6.pre.puma.pre.3 app/jobs/disco_app/concerns/synchronise_users_job.rb