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