|
|
|
@@ -6,6 +6,6 @@ class SyncMirroredRepositoryJob < ApplicationJob |
|
|
|
current_user = User.find_by(id: user_id) |
|
|
|
return if repo.blank? || current_user.blank? |
|
|
|
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 |