Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTrunk committed Jan 11, 2024
1 parent 27ba283 commit a8ddd09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/application/checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async function isHomeOK(ip, port) {
try {
const url = `http://${ip}:${port}`;
const response = await serviceHelper.httpGetRequest(url, timeout);
if (response.data.startsWith('<!DOCTYPE html><html')) {
if (response.data.toLowerCase().startsWith('<!doctype html><html')) {
return true;
}
return false;
Expand Down Expand Up @@ -126,7 +126,7 @@ async function hasManyMessages(ip, port) {
const url = `http://${ip}:${port}/apps/hashes`;
const response = await serviceHelper.httpGetRequest(url, timeout);
const appsAmount = response.data.data.length;
if (appsAmount > 25500) {
if (appsAmount > 29000) {
const messageFalse = response.data.data.filter((a) => a.message === false);
if (messageFalse.length < 80) {
return true;
Expand Down

0 comments on commit a8ddd09

Please sign in to comment.