mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
Revert "chore(errors): send req.body before JSON.parsing @colegleason"
This reverts commit 39f0961b75. @lefnire,
this was just sending `[object Object]` instead of `{}`. We want the
JSON.strigify, actually.
This commit is contained in:
parent
52decb7ede
commit
6d0168364c
1 changed files with 1 additions and 2 deletions
|
|
@ -66,8 +66,7 @@ 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: " + req.body;
|
||||
// "\n\nbody: " + JSON.stringify(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