Commit 9ef74e87 authored by Toon Claes's avatar Toon Claes

Also rename method that overrides CE behaviour

parent e9eec444
...@@ -6,14 +6,14 @@ module EE ...@@ -6,14 +6,14 @@ module EE
private private
override :save_result override :update_repository_check_status
def save_result(project, result) def update_repository_check_status(project, healthy)
return super unless ::Gitlab::Geo.secondary? return super unless ::Gitlab::Geo.secondary?
project_registry = ::Geo::ProjectRegistry.find_or_initialize_by(project: project) project_registry = ::Geo::ProjectRegistry.find_or_initialize_by(project: project)
project_registry.assign_attributes( project_registry.assign_attributes(
last_repository_check_failed: !result, last_repository_check_failed: !healthy,
last_repository_check_at: Time.now last_repository_check_at: Time.now
) )
project_registry.save! project_registry.save!
......
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