add other document type
This commit is contained in:
parent
a2b5ddf9a8
commit
7c2bb75244
@ -8,8 +8,7 @@ export default async function folderHandler(req: Request, response: Response, ne
|
||||
try {
|
||||
const officeId = req.body.user.office_Id;
|
||||
const userId = req.body.user.userId;
|
||||
const splittedReqPath = req.path && req.path.split("/");
|
||||
const uid = (splittedReqPath as string[]).pop();
|
||||
let uid = req.path && req.path.split("/")[5];
|
||||
const office = req.body.office;
|
||||
const officeFolderNumber = req.body.folder_number;
|
||||
const deed = req.body.deed;
|
||||
@ -45,6 +44,9 @@ export default async function folderHandler(req: Request, response: Response, ne
|
||||
}
|
||||
|
||||
if (uid) {
|
||||
if(uid === "download") {
|
||||
uid = req.path && req.path.split("/")[6];
|
||||
}
|
||||
const officeFolder = await officeFolderService.getByUidWithStakeholders(uid!);
|
||||
|
||||
if (!officeFolder) {
|
||||
|
@ -1540,6 +1540,15 @@ export default async function main() {
|
||||
created_at: new Date(),
|
||||
updated_at: new Date(),
|
||||
},
|
||||
{
|
||||
name: "Autres documents",
|
||||
archived_at: null,
|
||||
public_description: "Autres documents",
|
||||
private_description: "Autres documents",
|
||||
office: offices[0],
|
||||
created_at: new Date(),
|
||||
updated_at: new Date(),
|
||||
}
|
||||
];
|
||||
|
||||
const deedTypes: DeedType[] = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user