Add logs to folder Handler middleware
All checks were successful
All checks were successful
This commit is contained in:
parent
e8fe107a3e
commit
938c329c4d
@ -15,6 +15,9 @@ export default async function folderHandler(req: Request, response: Response, ne
|
||||
const stakeHolders = req.body.stakeholders as any[];
|
||||
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) {
|
||||
response.status(HttpCodes.UNAUTHORIZED).send("Unauthorized with this office");
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user