♻️ back: repository remove returns success now and file path alternative
This commit is contained in:
committed by
Anton Shepilov
parent
8efcb2546c
commit
c4d45412fd
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user