change
This commit is contained in:
parent
c56c98fd6e
commit
82a9907fdc
|
@ -6,6 +6,6 @@ class SyncMirroredRepositoryJob < ApplicationJob
|
||||||
current_user = User.find_by(id: user_id)
|
current_user = User.find_by(id: user_id)
|
||||||
return if repo.blank? || current_user.blank?
|
return if repo.blank? || current_user.blank?
|
||||||
result = Gitea::Repository::SyncMirroredService.new(repo.user.login, repo.identifier, token: current_user.gitea_token).call
|
result = Gitea::Repository::SyncMirroredService.new(repo.user.login, repo.identifier, token: current_user.gitea_token).call
|
||||||
repo&.mirror&.set_status! if result[:status] === 200 && repo&.mirror
|
repo&.mirror&.set_status! if result[:status] == 200 && repo.mirror.present?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue