RED-3785 - changed ott dld path

This commit is contained in:
Timo Bejan 2022-04-06 09:38:27 +03:00
parent 4a338e7a4c
commit b9bc05e015

View File

@ -48,7 +48,7 @@ export class FileDownloadService extends EntitiesService<DownloadStatus, IDownlo
async performDownload(status: DownloadStatus) {
const token = await firstValueFrom(this.generateToken(status.storageId));
const anchor = document.createElement('a');
anchor.href = `${this._configService.values.API_URL}/async/download/${token.value}`;
anchor.href = `${this._configService.values.API_URL}/async/download/with-ott/${token.value}`;
anchor.download = status.filename;
anchor.target = '_blank';
this._logger.info('[DOWNLOAD] Downloading with link: ', anchor.href);