From ee9e27ecad9b3a928de9810c2b8ef503702e8c16 Mon Sep 17 00:00:00 2001 From: smart_ex Date: Fri, 8 Apr 2022 20:31:43 +1000 Subject: [PATCH] move errorsLog to health --- src/contollers/status.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/contollers/status.js b/src/contollers/status.js index b103034..642a359 100644 --- a/src/contollers/status.js +++ b/src/contollers/status.js @@ -7,8 +7,7 @@ const { readRelayerErrors } = require('../utils') async function status(req, res) { const ethPrices = await redis.hgetall('prices') const health = await redis.hgetall('health') - const errors = await readRelayerErrors(redis) - + health.errorsLog = await readRelayerErrors(redis) const { waiting: currentQueue } = await queue.queue.getJobCounts() res.json({ @@ -20,7 +19,6 @@ async function status(req, res) { miningServiceFee, version, health, - errors, currentQueue, }) }