errorStats parameter does not exist anymore removing

This commit is contained in:
Emilien Devos 2024-04-21 22:38:45 +02:00
parent 177c403a89
commit 51513d16a8

View File

@ -38,7 +38,6 @@ spawn do
response = JSON.parse(client.get("/api/checks?api-key=ro-52iHyp6LBqQq7rGp4N7p").body)
monitors += response.as_a
rescue ex
error_message = response.try &.as?(String).try &.["errorStats"]?
error_message ||= ex.message
puts "Error pulling monitors: #{error_message}"
break