debian-mirror-gitlab/app/workers/authorized_projects_worker.rb
2018-03-27 19:54:05 +05:30

10 lines
194 B
Ruby

class AuthorizedProjectsWorker
include ApplicationWorker
prepend WaitableWorker
def perform(user_id)
user = User.find_by(id: user_id)
user&.refresh_authorized_projects
end
end