Commit 5ad48b83 authored by James Lopez's avatar James Lopez

small refactor

parent 30d62f44
class GeoProjectRegistryEntity < Grape::Entity class GeoProjectRegistryEntity < Grape::Entity
include ActionView::Helpers::NumberHelper
expose :project_id expose :project_id
expose :last_repository_synced_at expose :last_repository_synced_at
expose :last_repository_successful_sync_at expose :last_repository_successful_sync_at
......
...@@ -22,7 +22,7 @@ module Geo ...@@ -22,7 +22,7 @@ module Geo
fetch_geo_mirror(project.repository) fetch_geo_mirror(project.repository)
end end
update_registry(finished_at: DateTime.now) update_registry(finished_at: DateTime.now, last_repository_sync_failure: nil)
log_info('Finished repository sync', log_info('Finished repository sync',
update_delay_s: update_delay_in_seconds, update_delay_s: update_delay_in_seconds,
download_time_s: download_time_in_seconds) download_time_s: download_time_in_seconds)
......
...@@ -21,7 +21,7 @@ module Geo ...@@ -21,7 +21,7 @@ module Geo
fetch_geo_mirror(project.wiki.repository) fetch_geo_mirror(project.wiki.repository)
end end
update_registry(finished_at: DateTime.now) update_registry(finished_at: DateTime.now, last_wiki_sync_failure: nil)
log_info('Finished wiki sync', log_info('Finished wiki sync',
update_delay_s: update_delay_in_seconds, update_delay_s: update_delay_in_seconds,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment