#276: fixed PublishObserver

This commit is contained in:
Vokhmin Alexey V 2013-08-26 20:56:46 +04:00
parent 29cb1932aa
commit b5b01f3765
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ module AbfWorker
def perform def perform
return if status == STARTED # do nothing when publication started return if status == STARTED # do nothing when publication started
extra = options['extra'] extra = options['extra']
repository_status = RepositoryStatus.where(:id => extra['repository_status_id']) repository_status = RepositoryStatus.where(:id => extra['repository_status_id']).first
begin begin
if extra['regenerate'] # Regenerate metadata if extra['regenerate'] # Regenerate metadata
repository_status.last_regenerated_at = Time.now.utc repository_status.last_regenerated_at = Time.now.utc