fix: fix checking logic on the backend checker

This commit is contained in:
Fijxu 2025-03-16 23:30:07 -03:00
parent a44f37563b
commit 8be23eb01d
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -11,7 +11,6 @@ module BackendInfo
begin
response = HTTP::Client.get "#{CONFIG.invidious_companion.sample.private_url}/healthz"
if response.status_code == 200
@@status = 1
check_videoplayback_proxy()
else
@@status = 0
@ -36,6 +35,8 @@ module BackendInfo
if exvpp_health.status_code == 200
@@status = 2
return
else
@@status = 1
end
rescue
@@status = 1