Skip to content

Commit

Permalink
fix(mail): added notification_email to morgan (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
WikiRik authored Feb 23, 2021
1 parent d9ffe91 commit 25cf94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/morgan.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const log = require('./logger');

module.exports = morgan((tokens, req, res) => {
const user = req.user
? _.pick(req.user, ['id', 'username', 'first_name', 'last_name', 'email'])
? _.pick(req.user, ['id', 'username', 'first_name', 'last_name', 'email', 'notification_email'])
: undefined;

const body = _.isEmpty(req.body)
Expand Down

0 comments on commit 25cf94a

Please sign in to comment.