Only report traces as offline when they are offline

This commit is contained in:
Tom Hughes 2020-07-07 10:37:56 +01:00
parent ce99bfd9ac
commit 96ee7ef95c

View 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