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

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