Skip to content

Commit

Permalink
fix(users): fix optionnal on /me 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed May 5, 2020
1 parent ff6cf9f commit 7675944
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ exports.me = (req, res) => {
email: escape(req.user.email),
lastName: escape(req.user.lastName),
firstName: escape(req.user.firstName),
bio: escape(req.user.bio),
additionalProvidersData: req.user.additionalProvidersData,
};
if (req.user.bio) user.bio = escape(req.user.bio);
}
return responses.success(res, 'user get')(user);
};
Expand Down

0 comments on commit 7675944

Please sign in to comment.