From fc611140cfd1d192f22ee94adbccc43d9f8c1ca8 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Wed, 12 Aug 2020 15:25:16 +0800 Subject: [PATCH] change --- app/jobs/sync_mirrored_repository_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/sync_mirrored_repository_job.rb b/app/jobs/sync_mirrored_repository_job.rb index 8184ddee..0509eddd 100644 --- a/app/jobs/sync_mirrored_repository_job.rb +++ b/app/jobs/sync_mirrored_repository_job.rb @@ -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&.set_status! if result[:status] === 200 end end