]> git.openstreetmap.org Git - rails.git/commitdiff
Only report traces as offline when they are offline
authorTom Hughes <tom@compton.nu>
Tue, 7 Jul 2020 09:37:56 +0000 (10:37 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 7 Jul 2020 09:37:56 +0000 (10:37 +0100)
app/controllers/api/traces_controller.rb

index 000bb7f9036ec095bdf1df3d6c7db6954a1c1240..0b441bef986d9aa5ba4bfd1625001a6144b7115f 100644 (file)
@@ -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