Commit 30aaa022 authored by Stan Hu's avatar Stan Hu Committed by Robert Speicher

Standard @project -> project

parent a1812edb
...@@ -10,13 +10,13 @@ class RepositoryUpdateMirrorWorker ...@@ -10,13 +10,13 @@ class RepositoryUpdateMirrorWorker
def perform(project_id) def perform(project_id)
begin begin
@project = Project.find(project_id) project = Project.find(project_id)
return unless project return unless project
@current_user = @project.mirror_user || @project.creator @current_user = project.mirror_user || project.creator
result = Projects::UpdateMirrorService.new(@project, @current_user).execute result = Projects::UpdateMirrorService.new(project, @current_user).execute
if result[:status] == :error if result[:status] == :error
project.mark_import_as_failed(result[:message]) project.mark_import_as_failed(result[:message])
return return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment