mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
chore(errors): send req.body before JSON.parsing @colegleason
This commit is contained in:
parent
efdd85fe2e
commit
39f0961b75
1 changed files with 2 additions and 1 deletions
|
|
@ -66,7 +66,8 @@ module.exports.errorHandler = function(err, req, res, next) {
|
|||
"\n\noriginalUrl: " + req.originalUrl +
|
||||
"\n\nauth: " + req.headers['x-api-user'] + ' | ' + req.headers['x-api-key'] +
|
||||
"\n\nheaders: " + JSON.stringify(req.headers) +
|
||||
"\n\nbody: " + JSON.stringify(req.body);
|
||||
"\n\nbody: " + req.body;
|
||||
// "\n\nbody: " + JSON.stringify(req.body);
|
||||
module.exports.sendEmail({
|
||||
from: "HabitRPG <" + nconf.get('SMTP_USER') + ">",
|
||||
to: nconf.get('ADMIN_EMAIL') || nconf.get('SMTP_USER'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue