move errorsLog to health
This commit is contained in:
parent
95c6dc23c6
commit
ee9e27ecad
@ -7,8 +7,7 @@ const { readRelayerErrors } = require('../utils')
|
|||||||
async function status(req, res) {
|
async function status(req, res) {
|
||||||
const ethPrices = await redis.hgetall('prices')
|
const ethPrices = await redis.hgetall('prices')
|
||||||
const health = await redis.hgetall('health')
|
const health = await redis.hgetall('health')
|
||||||
const errors = await readRelayerErrors(redis)
|
health.errorsLog = await readRelayerErrors(redis)
|
||||||
|
|
||||||
const { waiting: currentQueue } = await queue.queue.getJobCounts()
|
const { waiting: currentQueue } = await queue.queue.getJobCounts()
|
||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
@ -20,7 +19,6 @@ async function status(req, res) {
|
|||||||
miningServiceFee,
|
miningServiceFee,
|
||||||
version,
|
version,
|
||||||
health,
|
health,
|
||||||
errors,
|
|
||||||
currentQueue,
|
currentQueue,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user