Fixed bug that prevented files from being downloaded from the server. Reverted some changes from #528 as they are not needed

This commit is contained in:
Isaac Abadi
2022-04-22 00:35:58 -04:00
parent 7a4d91cea0
commit df687263c5
3 changed files with 4 additions and 26 deletions

View File

@@ -357,15 +357,12 @@ export class PostsService implements CanActivate {
return this.http.post<GetAllFilesResponse>(this.path + 'getAllFiles', {sort: sort, range: range, text_search: text_search, file_type_filter: file_type_filter}, this.httpOptions);
}
downloadFileFromServer(uid: string, uuid: string = null, sub_id: string = null, url: string = null, type: FileType = null) {
downloadFileFromServer(uid: string, uuid: string = null) {
const body: DownloadFileRequest = {
uid: uid,
uuid: uuid,
sub_id: sub_id,
url: url,
type: type
uuid: uuid
};
return this.http.post(this.path + 'downloadFile', body, {responseType: 'blob', params: this.httpOptions.params});
return this.http.post(this.path + 'downloadFileFromServer', body, {responseType: 'blob', params: this.httpOptions.params});
}
getFullTwitchChat(id, type, uuid = null, sub = null) {