Mise à jour de middlewares

This commit is contained in:
2025-11-30 17:49:32 +01:00
parent b861dcbb46
commit ba2899f683
2 changed files with 6 additions and 15 deletions
+1 -1
View File
@@ -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 {