From bee2ceb667906307571b66b54e576cfc5441d5b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Franco?= Date: Sat, 2 Jan 2021 04:58:14 +0000 Subject: [PATCH] Fix dead hosts verification count --- backend/internal/host.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/internal/host.js b/backend/internal/host.js index a8abf323..58e1d09a 100644 --- a/backend/internal/host.js +++ b/backend/internal/host.js @@ -106,7 +106,7 @@ const internalHost = { response_object.total_count += response_object.redirection_hosts.length; } - if (promises_results[1]) { + if (promises_results[2]) { // Dead Hosts response_object.dead_hosts = internalHost._getHostsWithDomains(promises_results[2], domain_names); response_object.total_count += response_object.dead_hosts.length; @@ -158,7 +158,7 @@ const internalHost = { } } - if (promises_results[1]) { + if (promises_results[2]) { // Dead Hosts if (internalHost._checkHostnameRecordsTaken(hostname, promises_results[2], ignore_type === 'dead' && ignore_id ? ignore_id : 0)) { is_taken = true;