trim https:// prefix from portal api
This commit is contained in:
parent
733834095f
commit
4dd93a269b
|
@ -109,7 +109,7 @@ async function hnsVerification(done, expected) {
|
||||||
const details = { name: expected.name, hns: expected.hns };
|
const details = { name: expected.name, hns: expected.hns };
|
||||||
|
|
||||||
try {
|
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 query = `https://${expected.hns}.hns.${portalDomain}`;
|
||||||
const response = await got(query);
|
const response = await got(query);
|
||||||
const entry = { ...details, up: true, statusCode: response.statusCode, time: calculateElapsedTime(time) };
|
const entry = { ...details, up: true, statusCode: response.statusCode, time: calculateElapsedTime(time) };
|
||||||
|
|
Reference in New Issue