Add logs to folder Handler middleware
All checks were successful
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m48s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 3s

This commit is contained in:
Omar Oughriss 2025-07-25 15:27:58 +02:00
parent e8fe107a3e
commit 938c329c4d

View File

@ -15,6 +15,9 @@ export default async function folderHandler(req: Request, response: Response, ne
const stakeHolders = req.body.stakeholders as any[]; const stakeHolders = req.body.stakeholders as any[];
const description = req.body.description; const description = req.body.description;
console.log("User req", JSON.stringify(req.body.user));
console.log("Office req", JSON.stringify(req.body.office));
if (office && office.uid != officeId) { if (office && office.uid != officeId) {
response.status(HttpCodes.UNAUTHORIZED).send("Unauthorized with this office"); response.status(HttpCodes.UNAUTHORIZED).send("Unauthorized with this office");
return; return;