2016-10-11 08:25:17 -04:00
|
|
|
class AuthorizedProjectsWorker
|
2017-11-28 11:08:30 -05:00
|
|
|
include ApplicationWorker
|
2018-02-26 06:17:50 -05:00
|
|
|
prepend WaitableWorker
|
2016-10-11 08:25:17 -04:00
|
|
|
|
2018-02-26 06:17:50 -05:00
|
|
|
def perform(user_id)
|
2016-10-11 08:25:17 -04:00
|
|
|
user = User.find_by(id: user_id)
|
|
|
|
|
2017-02-07 09:16:46 -05:00
|
|
|
user&.refresh_authorized_projects
|
2016-10-11 08:25:17 -04:00
|
|
|
end
|
|
|
|
end
|