Fix video deletion

This commit is contained in:
Chocobozzz 2020-09-02 15:22:10 +02:00
parent 10bd2983fa
commit c1cc04063b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 4 additions and 3 deletions

View File

@ -83,6 +83,7 @@ async function getVideoIdsOf (host: string) {
aggs: {
ids: {
terms: {
size: 500000,
field: 'id'
}
}

View File

@ -1,9 +1,9 @@
import { IndexableVideo } from '../types/video.model'
import { doRequest, doRequestWithRetries } from '../helpers/requests'
import { ResultList, Video, VideoChannel, VideoDetails } from '@shared/models'
import { IndexableChannel } from '../types/channel.model'
import { doRequestWithRetries } from '../helpers/requests'
import { INDEXER_COUNT, REQUESTS } from '../initializers/constants'
import { IndexableChannel } from '../types/channel.model'
import { IndexableDoc } from '../types/elastic-search.model'
import { IndexableVideo } from '../types/video.model'
async function getVideo (host: string, uuid: string): Promise<IndexableVideo> {
const url = 'https://' + host + '/api/v1/videos/' + uuid