From b5b01f3765be779b6e834f28bf503ee2dcc81e71 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Mon, 26 Aug 2013 20:56:46 +0400 Subject: [PATCH] #276: fixed PublishObserver --- lib/abf_worker/publish_observer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/abf_worker/publish_observer.rb b/lib/abf_worker/publish_observer.rb index af7254e9c..ca7c9e329 100644 --- a/lib/abf_worker/publish_observer.rb +++ b/lib/abf_worker/publish_observer.rb @@ -10,7 +10,7 @@ module AbfWorker def perform return if status == STARTED # do nothing when publication started extra = options['extra'] - repository_status = RepositoryStatus.where(:id => extra['repository_status_id']) + repository_status = RepositoryStatus.where(:id => extra['repository_status_id']).first begin if extra['regenerate'] # Regenerate metadata repository_status.last_regenerated_at = Time.now.utc