mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 08:26:22 +00:00
fix: statistics failing to respond on errors
This commit is contained in:
parent
b117fa9ad1
commit
9d38c431dc
@ -1083,7 +1083,7 @@ self.stats = async (req, res, next) => {
|
|||||||
Object.keys(statsData).forEach(key => {
|
Object.keys(statsData).forEach(key => {
|
||||||
statsData[key].generating = false
|
statsData[key].generating = false
|
||||||
})
|
})
|
||||||
return apiErrorsHandler(error)
|
return apiErrorsHandler(error, req, res, next)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user