WIP
This commit is contained in:
parent
0de9717406
commit
9fce8c6c1a
@ -46,7 +46,7 @@ export default class OfficeFoldersController extends ApiController {
|
|||||||
const officeFolderEntity = OfficeFolder.hydrate<OfficeFolder>(req.body);
|
const officeFolderEntity = OfficeFolder.hydrate<OfficeFolder>(req.body);
|
||||||
|
|
||||||
//validate folder
|
//validate folder
|
||||||
await validateOrReject(officeFolderEntity, { groups: ["create"] });
|
await validateOrReject(officeFolderEntity, { groups: ["createFolder"] });
|
||||||
//call service to get prisma entity
|
//call service to get prisma entity
|
||||||
const prismaEntityCreated = await this.officeFoldersService.create(officeFolderEntity);
|
const prismaEntityCreated = await this.officeFoldersService.create(officeFolderEntity);
|
||||||
//Hydrate ressource with prisma entity
|
//Hydrate ressource with prisma entity
|
||||||
|
Loading…
x
Reference in New Issue
Block a user