trim https:// prefix from portal api

This commit is contained in:
Matthew Sevey 2021-10-06 15:58:27 -04:00
parent 733834095f
commit 4dd93a269b
No known key found for this signature in database
GPG Key ID: 9ADDD344F13057F6
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ async function hnsVerification(done, expected) {
const details = { name: expected.name, hns: expected.hns };
try {
const portalDomain = `${process.env.SKYNET_PORTAL_API}`;
const portalDomain = `${process.env.SKYNET_PORTAL_API}`.replace("https://", "");
const query = `https://${expected.hns}.hns.${portalDomain}`;
const response = await got(query);
const entry = { ...details, up: true, statusCode: response.statusCode, time: calculateElapsedTime(time) };