Merge branch 'fix/file-handler' into dev

This commit is contained in:
Loïs Mansot 2023-09-25 17:15:36 +02:00
commit fc6d20afa5
No known key found for this signature in database
GPG Key ID: 8CF1F4150DDA726D

View File

@ -7,7 +7,7 @@ import DeedTypesService from "@Services/super-admin/DeedTypesService/DeedTypesSe
export default async function folderHandler(req: Request, response: Response, next: NextFunction) {
try {
const officeId = req.body.user.office_Id;
const uid = req.path && req.path.split("/")[5];
const uid = req.path && req.path.split("/")[-1];
const office = req.body.office;
const officeFolderNumber = req.body.folder_number;
const deed = req.body.deed;
@ -57,7 +57,6 @@ export default async function folderHandler(req: Request, response: Response, ne
}
next();
} catch (error) {
console.log(error);
response.status(HttpCodes.INTERNAL_ERROR).send("Internal server error");