Better typing
This commit is contained in:
parent
36a36379b4
commit
0a1e029e53
|
@ -1,5 +1,5 @@
|
||||||
import { IndexablePlaylist } from 'server/types/playlist.model'
|
import { IndexablePlaylist } from 'server/types/playlist.model'
|
||||||
import { ResultList, Video, VideoChannel, VideoDetails, VideoPlaylist } from '@peertube/peertube-types'
|
import { ResultList, Video, VideoChannel, VideoDetails, VideoPlaylist, VideosCommonQuery } from '@peertube/peertube-types'
|
||||||
import { doRequestWithRetries } from '../../helpers/requests'
|
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 { IndexableChannel } from '../../types/channel.model'
|
||||||
|
@ -60,7 +60,7 @@ async function getVideos (host: string, start: number): Promise<IndexableVideo[]
|
||||||
nsfw: 'both',
|
nsfw: 'both',
|
||||||
skipCount: true,
|
skipCount: true,
|
||||||
count: INDEXER_COUNT
|
count: INDEXER_COUNT
|
||||||
},
|
} as VideosCommonQuery,
|
||||||
json: true
|
json: true
|
||||||
}, REQUESTS.MAX_RETRIES, REQUESTS.WAIT)
|
}, REQUESTS.MAX_RETRIES, REQUESTS.WAIT)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue