fix healthcheck

This commit is contained in:
Karol Wypchlo 2020-07-27 18:59:32 +02:00
parent 70d332543a
commit 60fcf4b8b8
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ async function uploadCheck(done) {
const time = process.hrtime();
superagent
.post(`${process.env.PORTAL_URL}/skynet/skyfile`)
.post(`http://${process.env.PORTAL_URL}/skynet/skyfile`)
.attach("file", "package.json", "package.json")
.end((err, res) => {
const statusCode = (res && res.statusCode) || (err && err.statusCode) || null;
@ -22,7 +22,7 @@ async function uploadCheck(done) {
function downloadCheck(done) {
const time = process.hrtime();
superagent.get(`${process.env.PORTAL_URL}`).end((err, res) => {
superagent.get(`http://${process.env.PORTAL_URL}`).end((err, res) => {
const statusCode = (res && res.statusCode) || (err && err.statusCode) || null;
done({