RED-6162 - tenant context

This commit is contained in:
Timo Bejan 2023-03-21 14:11:29 +02:00
parent 5e3c60885a
commit 6f6fb55866

View File

@ -36,7 +36,7 @@ export class FileDownloadService extends EntitiesService<IDownloadStatus, Downlo
async performDownload(status: DownloadStatus) {
const token = await this.generateToken(status.storageId);
const anchor = document.createElement('a');
anchor.href = `${this._configService.values.API_URL}/async/download/with-ott/${token.value}?tenantId?=${encodeURIComponent(
anchor.href = `${this._configService.values.API_URL}/async/download/with-ott/${token.value}?tenantId=${encodeURIComponent(
this._tenantContext.getTenant(),
)}`;
anchor.download = status.filename;