fix download

This commit is contained in:
Arnas Udovic 2024-04-14 20:48:34 +03:00
parent 24cb08c6b7
commit 77a4f42932
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ func (TreeManagerServer *server) DownloadAttachment(
responseStream TreeManager_DownloadAttachmentServer,
) error {
file, err := os.Open(
path.Clean(fmt.Sprintf("%s/%s/%s", source, &config.AttachmentDirName, in.Path)),
path.Clean(fmt.Sprintf("%s/%s/%s", source, config.AttachmentDirName, in.Path)),
)
if err != nil {
return err