ref: files e2e test

This commit is contained in:
Monta
2024-03-15 16:26:11 +01:00
committed by Anton Shepilov
parent 728dd3092b
commit 8494145e9d
3 changed files with 7 additions and 10 deletions
@@ -46,7 +46,6 @@ export default class S3ConnectorService implements StorageConnectorAPI {
let err = null;
for (let i = 0; i <= tries; i++) {
try {
console.log("🚀🚀 reading s3 object: ", path);
const stat = await this.client.statObject(this.minioConfiguration.bucket, path);
if (stat?.size > 0) {
break;
@@ -461,8 +461,8 @@ export class FileServiceImpl {
}
}
}
function getFilePath(entity: File): string {
export const getFilePath = (entity: File): string => {
return `${gr.platformServices.storage.getHomeDir()}/files/${entity.company_id}/${
entity.user_id || "anonymous"
}/${entity.id}`;
}
};