diff --git a/lib/abf_worker/publish_observer.rb b/lib/abf_worker/publish_observer.rb index ca7c9e329..5f67d58c7 100644 --- a/lib/abf_worker/publish_observer.rb +++ b/lib/abf_worker/publish_observer.rb @@ -16,7 +16,7 @@ module AbfWorker repository_status.last_regenerated_at = Time.now.utc repository_status.last_regenerated_status = status elsif extra['regenerate_platform'] # Regenerate metadata for Software Center - if platform = Platform.where(:id => extra['platform_id'])).first + if platform = Platform.where(:id => extra['platform_id']).first platform.last_regenerated_at = Time.now.utc platform.last_regenerated_status = status platform.ready