new dev script

This commit is contained in:
Vincent Alamelle 2023-05-04 17:22:30 +02:00
parent a9d5a47fd2
commit 8ca1356912

View File

@ -75,7 +75,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: ["updateFolder"] }); await validateOrReject(officeFolderEntity, { groups: ["updateFolder"], forbidUnknownValues: false });
//call service to get prisma entity //call service to get prisma entity
const prismaEntityUpdated = await this.officeFoldersService.update(uid, officeFolderEntity); const prismaEntityUpdated = await this.officeFoldersService.update(uid, officeFolderEntity);