mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
add res.respond, fix linting
This commit is contained in:
@@ -68,7 +68,5 @@ export default function errorHandler (err, req, res, next) {
|
||||
|
||||
if (responseErr.errors) jsonRes.errors = responseErr.errors;
|
||||
|
||||
return res
|
||||
.status(responseErr.httpCode)
|
||||
.json(jsonRes);
|
||||
return res.respond(responseErr.httpCode, jsonRes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user