mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 21:49:33 +00:00
fix DownloadAggsType
This commit is contained in:
@@ -7,11 +7,9 @@ type DownloadAggsBucket = {
|
||||
};
|
||||
|
||||
export type DownloadAggsType = {
|
||||
channel_downloads: {
|
||||
doc_count_error_upper_bound: number;
|
||||
sum_other_doc_count: number;
|
||||
buckets: DownloadAggsBucket[];
|
||||
};
|
||||
doc_count_error_upper_bound: number;
|
||||
sum_other_doc_count: number;
|
||||
buckets: DownloadAggsBucket[];
|
||||
};
|
||||
|
||||
const loadDownloadAggs = async (showIgnored: boolean): Promise<DownloadAggsType> => {
|
||||
|
||||
@@ -66,8 +66,7 @@ const Download = () => {
|
||||
|
||||
const downloadList = downloadResponse?.data;
|
||||
const pagination = downloadResponse?.paginate;
|
||||
const channelDownloads = downloadAggsResponse?.channel_downloads;
|
||||
const channelAggsList = channelDownloads?.buckets;
|
||||
const channelAggsList = downloadAggsResponse?.buckets;
|
||||
|
||||
const downloadCount = pagination?.total_hits;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user