♻️ back: repository remove returns success now and file path alternative

This commit is contained in:
Eric Doughty-Papassideris
2025-02-28 00:54:35 +01:00
committed by Anton Shepilov
parent 8efcb2546c
commit c4d45412fd
4 changed files with 9 additions and 7 deletions
@@ -478,7 +478,9 @@ export class FileServiceImpl {
return this.algorithm;
}
}
export const getFilePath = (entity: File): string => {
export const getFilePath = (
entity: File | { company_id: string; user_id?: string; id: string },
): string => {
return `${gr.platformServices.storage.getHomeDir()}/files/${entity.company_id}/${
entity.user_id || "anonymous"
}/${entity.id}`;