gitlab-org--gitlab-foss/app/workers/authorized_projects_worker.rb

11 lines
194 B
Ruby
Raw Normal View History

class AuthorizedProjectsWorker
include ApplicationWorker
prepend WaitableWorker
def perform(user_id)
user = User.find_by(id: user_id)
2017-02-07 09:16:46 -05:00
user&.refresh_authorized_projects
end
end