change
This commit is contained in:
parent
fcb5f58b69
commit
fc611140cf
|
@ -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&.set_status! if result[:status] === 200
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue