move errorsLog to health

This commit is contained in:
smart_ex 2022-04-08 20:31:43 +10:00 committed by Danil Kovtonyuk
parent 95c6dc23c6
commit ee9e27ecad

@ -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,
})
}