add healtcheck download skylink without cache

This commit is contained in:
Karol Wypchlo 2020-07-29 12:07:48 +02:00
parent 7ff0c9d09a
commit 405f3ae48c
1 changed files with 2 additions and 1 deletions

View File

@ -21,8 +21,9 @@ async function uploadCheck(done) {
function downloadCheck(done) {
const time = process.hrtime();
const skylink = "AACogzrAimYPG42tDOKhS3lXZD8YvlF8Q8R17afe95iV2Q";
superagent.get(`http://${process.env.PORTAL_URL}`).end((err, res) => {
superagent.get(`http://${process.env.PORTAL_URL}/${skylink}?nocache=true`).end((err, res) => {
const statusCode = (res && res.statusCode) || (err && err.statusCode) || null;
done({