fix video download for public collection

This commit is contained in:
Abhinav 2022-01-20 15:49:40 +05:30
parent 1a74eccdd7
commit ffe5062d7a

View file

@ -1,5 +1,4 @@
import {
getFileURL,
getPublicCollectionFileURL,
getPublicCollectionThumbnailURL,
} from 'utils/common/apiUtil';
@ -127,7 +126,7 @@ class PublicCollectionDownloadManager {
);
return generateStreamFromArrayBuffer(decrypted);
}
const resp = await fetch(getFileURL(file.id), {
const resp = await fetch(getPublicCollectionFileURL(file.id), {
headers: {
'X-Auth-Token': token,
},