Skip to content

Commit

Permalink
fix(mail): added notification_email to morgan
Browse files Browse the repository at this point in the history
  • Loading branch information
WikiRik committed Feb 22, 2021
1 parent 3965168 commit 04578b5
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 04578b5

Please sign in to comment.