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