From ad073d2e39ef62bf08b766457106757dbdef20e5 Mon Sep 17 00:00:00 2001 From: Wedge Date: Sat, 16 Feb 2019 11:26:08 +0300 Subject: [PATCH] Remove subject check in publish observer --- app/jobs/abf_worker/publish_observer.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/jobs/abf_worker/publish_observer.rb b/app/jobs/abf_worker/publish_observer.rb index c5841dcc8..eb2a9aad8 100644 --- a/app/jobs/abf_worker/publish_observer.rb +++ b/app/jobs/abf_worker/publish_observer.rb @@ -4,7 +4,6 @@ module AbfWorker def real_perform @subject_class = BuildList - return if !subject return if status == STARTED # do nothing when publication started extra = options['extra'] repository_status = RepositoryStatus.where(id: extra['repository_status_id']).first @@ -88,4 +87,4 @@ module AbfWorker sort_results_and_save results, build_list end end -end \ No newline at end of file +end