Better typing

This commit is contained in:
Chocobozzz 2023-08-07 11:21:26 +02:00
parent 36a36379b4
commit 0a1e029e53
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -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)