🐛 When we are creating path for the files to store them in S3 (#583)

* 🐛When we are creating path for the files to store them in S3, sometimes it's with trailing "/" and sometimes without
This commit is contained in:
Anton Shepilov
2024-07-18 16:03:29 +02:00
committed by GitHub
parent e76da87916
commit 8a2651134b
4 changed files with 257 additions and 198 deletions
@@ -218,7 +218,7 @@ export class DocumentsService {
date: "last_modified",
size: "size",
};
let sortField = {};
const sortField = {};
sortField[sortFieldMapping[sort?.by] || "last_modified"] = sort?.order || "desc";
const dbType = await globalResolver.database.getConnector().getType();