diff --git a/docs.md b/docs.md index 9b1883fb..2fd3c000 100644 --- a/docs.md +++ b/docs.md @@ -529,7 +529,7 @@ Assuming `ORDER_ID` is present in env const resp = JSON.parse(atob(responseDataBase64)); let status = 'DOWN' if(statusCode == 200) status = 'UP'; - if(resp.length == 0) status = 'DOWN'; + if(Object.keys(resp).length == 0) status = 'DOWN'; if(statusCode == 200 && responseTime > 2000) status = 'DEGRADED'; return { status: status, diff --git a/package.json b/package.json index b4f5ad1d..367eb2d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kener", - "version": "0.0.6", + "version": "0.0.7", "private": false, "license": "MIT", "description": "Kener: An open-source Node.js status page application for real-time service monitoring, incident management, and customizable reporting. Simplify service outage tracking, enhance incident communication, and ensure a seamless user experience.",