add healtcheck download skylink without cache
This commit is contained in:
parent
7ff0c9d09a
commit
405f3ae48c
|
@ -21,8 +21,9 @@ async function uploadCheck(done) {
|
||||||
|
|
||||||
function downloadCheck(done) {
|
function downloadCheck(done) {
|
||||||
const time = process.hrtime();
|
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;
|
const statusCode = (res && res.statusCode) || (err && err.statusCode) || null;
|
||||||
|
|
||||||
done({
|
done({
|
||||||
|
|
Reference in New Issue