Merge branch 'staging' into preprod

This commit is contained in:
Vins 2024-02-16 15:00:42 +01:00
commit bf73cb8428
3 changed files with 2 additions and 8 deletions

View File

@ -58,7 +58,7 @@
"file-type-checker": "^1.0.8",
"fp-ts": "^2.16.1",
"jsonwebtoken": "^9.0.0",
"le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.106",
"le-coffre-resources": "git@github.com:smart-chain-fr/leCoffre-resources.git#v2.108",
"module-alias": "^2.2.2",
"monocle-ts": "^2.3.13",
"multer": "^1.4.5-lts.1",

View File

@ -168,7 +168,7 @@ export default class OfficeFoldersController extends ApiController {
const officeFolderFound = await this.officeFoldersService.getByUid(uid, {
folder_anchor: true,
});
});
if (!officeFolderFound) {
this.httpNotFoundRequest(response, "office folder not found");
@ -184,11 +184,6 @@ export default class OfficeFoldersController extends ApiController {
//validate folder
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
const officeFolderEntityUpdated = await this.officeFoldersService.updateStatus(uid, officefolderToUpdate);

View File

@ -20,7 +20,6 @@ export default class DocumentTypesRepository extends BaseRepository {
* @description : Find many document types
*/
public async findMany(query: Prisma.DocumentTypesFindManyArgs) {
query.take = Math.min(query.take || this.defaultFetchRows, this.maxFetchRows);
return this.model.findMany(query);
}