fix download attachment

This commit is contained in:
Peter Maquiran
2024-09-13 12:59:56 +01:00
parent 5c157d4c63
commit 4b6364fac1
4 changed files with 16 additions and 20 deletions
@@ -14,7 +14,7 @@ export class AttachmentRemoteDataSourceService implements IAttachmentRemoteRepos
) { }
async getAttachment(id: string | number): DataSourceReturn<Blob> {
return await this.httpService.get(`${this.baseUrl}/attachment/${id}`, { responseType: 'blob' });
return await this.httpService.getFile(`${this.baseUrl}/attachment/${id}`, { responseType: 'blob' });
}
}