Mise à jour de middlewares
This commit is contained in:
@@ -38,7 +38,7 @@ const auth = {
|
||||
return res.status(401).json({message: "Unauthorized - You are not allowed to access this resource.", err: err, info: info});
|
||||
}
|
||||
req.application = application;
|
||||
req.payload = {id: application.author._id};
|
||||
req.payload = {id: application.author.id};
|
||||
return next();
|
||||
})(req, res, next);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user