fix: statistics failing to respond on errors

This commit is contained in:
Bobby Wibowo 2022-06-29 14:29:47 +07:00
parent b117fa9ad1
commit 9d38c431dc
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

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