Skip to content

Commit

Permalink
🐛 file storage leading slash removed (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
MontaGhanmy authored Nov 7, 2023
1 parent 650f394 commit d51c9bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class StorageService extends TdriveService<StorageAPI> implements

private encryptionOptions: EncryptionConfiguration;
private algorithm = "aes-256-cbc";
private homeDir = "tdrive";
private homeDir = "/tdrive";

api(): StorageAPI {
return this;
Expand Down
2 changes: 1 addition & 1 deletion tdrive/backend/node/src/services/files/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export class FileServiceImpl {
}

function getFilePath(entity: File): string {
return `/${gr.platformServices.storage.getHomeDir()}/files/${entity.company_id}/${
return `${gr.platformServices.storage.getHomeDir()}/files/${entity.company_id}/${
entity.user_id || "anonymous"
}/${entity.id}`;
}

0 comments on commit d51c9bd

Please sign in to comment.