feat: show pending messages in appbar

This commit is contained in:
canove
2020-08-25 12:24:19 -03:00
parent ea4ff654ff
commit 6e8eba1187
11 changed files with 255 additions and 469 deletions

View File

@@ -15,7 +15,7 @@ module.exports = async (req, res, next) => {
if (error) {
return res.status(401).json({ error: "Invalid token" });
}
req.userId = token.userId;
req.userId = result.userId;
// todo >> find user in DB and store in req.user to use latter, or throw an error if user not exists anymore
next();
});