mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 19:59:20 +00:00
feat: show pending messages in appbar
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user