From 405f3ae48cbbb1ec30df12211c1bbf32d8b56975 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 29 Jul 2020 12:07:48 +0200 Subject: [PATCH] add healtcheck download skylink without cache --- health-check/checks.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/health-check/checks.js b/health-check/checks.js index 8e29b3dc..8372ac6f 100644 --- a/health-check/checks.js +++ b/health-check/checks.js @@ -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({