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