From 71c8937f93d6b0846ecf79218f37c11896396184 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Mon, 15 Aug 2022 09:05:05 +0000 Subject: [PATCH] Minor tweaks and test --- api/server.mjs | 3 ++- appveyor.yml | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/api/server.mjs b/api/server.mjs index 5001026..1c5e261 100644 --- a/api/server.mjs +++ b/api/server.mjs @@ -43,6 +43,7 @@ export default class Server { }) let healthChecks = 0 + let healthCollectLimit = 10 this.flaska.after(function(ctx) { let ended = performance.now() - ctx.__started @@ -59,7 +60,7 @@ export default class Server { if (ctx.url === '/health') { healthChecks++ - if (healthChecks > 60 * 60 * 12) { + if (healthChecks > healthCollectLimit) { ctx.log[level]({ duration: Math.round(ended), status: ctx.status, diff --git a/appveyor.yml b/appveyor.yml index ffbd70b..96c2d03 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -66,7 +66,7 @@ on_success: https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases/$RELEASE_ID/assets echo "Deplying to production" - curl -X POST http://192.168.93.50:4010/update/serviceupload + curl -X POST http://192.168.93.50:4010/update/storageupload fi # on build failure diff --git a/package.json b/package.json index 394c0f1..5c28854 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "storage-upload", - "version": "2.2.2", + "version": "2.2.3", "description": "Micro service for uploading and image resizing files to a storage server.", "main": "index.js", "scripts": {