mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-11-18 19:40:04 -05:00
move errorsLog to health
This commit is contained in:
parent
95c6dc23c6
commit
ee9e27ecad
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue