From 96ee7ef95c434df4ba9bb5d02257a8355c0b6f50 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 7 Jul 2020 10:37:56 +0100 Subject: [PATCH] Only report traces as offline when they are offline --- app/controllers/api/traces_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/traces_controller.rb b/app/controllers/api/traces_controller.rb index 000bb7f90..0b441bef9 100644 --- a/app/controllers/api/traces_controller.rb +++ b/app/controllers/api/traces_controller.rb @@ -159,7 +159,7 @@ module Api end def offline_error - report_error "GPX files offline for maintenance", :service_unavailable + report_error "GPX files offline for maintenance", :service_unavailable if Settings.status == "gpx_offline" end end end -- 2.39.5