Class: GithubProjectWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/github_project_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(project_id) ⇒ Object


5
6
7
8
9
10
11
# File 'app/workers/github_project_worker.rb', line 5

def perform(project_id)
  project = Project.find_by_id(project_id)
  if project
    project.update_github_repo
    project.update_source_rank_async
  end
end