Fix video deletion
This commit is contained in:
parent
10bd2983fa
commit
c1cc04063b
|
@ -83,6 +83,7 @@ async function getVideoIdsOf (host: string) {
|
||||||
aggs: {
|
aggs: {
|
||||||
ids: {
|
ids: {
|
||||||
terms: {
|
terms: {
|
||||||
|
size: 500000,
|
||||||
field: 'id'
|
field: 'id'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 { 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 { INDEXER_COUNT, REQUESTS } from '../initializers/constants'
|
||||||
|
import { IndexableChannel } from '../types/channel.model'
|
||||||
import { IndexableDoc } from '../types/elastic-search.model'
|
import { IndexableDoc } from '../types/elastic-search.model'
|
||||||
|
import { IndexableVideo } from '../types/video.model'
|
||||||
|
|
||||||
async function getVideo (host: string, uuid: string): Promise<IndexableVideo> {
|
async function getVideo (host: string, uuid: string): Promise<IndexableVideo> {
|
||||||
const url = 'https://' + host + '/api/v1/videos/' + uuid
|
const url = 'https://' + host + '/api/v1/videos/' + uuid
|
||||||
|
|
Loading…
Reference in New Issue