Merge branch 'dev' into staging

This commit is contained in:
Vins 2024-02-13 09:21:31 +01:00
commit bf0348a153

View File

@ -184,11 +184,6 @@ export default class OfficeFoldersController extends ApiController {
//validate folder //validate folder
await validateOrReject(officefolderToUpdate, { groups: ["updateFolder"], forbidUnknownValues: false }); await validateOrReject(officefolderToUpdate, { groups: ["updateFolder"], forbidUnknownValues: false });
if ((officeFolderFound as any).folder_anchor?.status !== "VERIFIED_ON_CHAIN") {
this.httpBadRequest(response, "Cannot archive a not anchored folder");
return;
}
//call service to get prisma entity //call service to get prisma entity
const officeFolderEntityUpdated = await this.officeFoldersService.updateStatus(uid, officefolderToUpdate); const officeFolderEntityUpdated = await this.officeFoldersService.updateStatus(uid, officefolderToUpdate);