🐛home directory fix

This commit is contained in:
Anton SHEPILOV
2024-02-23 11:51:06 +01:00
parent ac3b3d82db
commit 488aafe284
@@ -311,5 +311,7 @@ export class FileServiceImpl {
}
function getFilePath(entity: File): string {
return `/files/${entity.company_id}/${entity.user_id || "anonymous"}/${entity.id}`;
return `${gr.platformServices.storage.getHomeDir()}/files/${entity.company_id}/${
entity.user_id || "anonymous"
}/${entity.id}`;
}