mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Fix build with typescript 3.8
This commit is contained in:
parent
3637106d7a
commit
366caf8b71
6 changed files with 7 additions and 7 deletions
|
@ -27,7 +27,7 @@ async function listAvailablePluginsFromIndex (options: PeertubePluginIndexList)
|
|||
const uri = CONFIG.PLUGINS.INDEX.URL + '/api/v1/plugins'
|
||||
|
||||
try {
|
||||
const { body } = await doRequest({ uri, qs, json: true })
|
||||
const { body } = await doRequest<any>({ uri, qs, json: true })
|
||||
|
||||
logger.debug('Got result from PeerTube index.', { body })
|
||||
|
||||
|
@ -57,7 +57,7 @@ async function getLatestPluginsVersion (npmNames: string[]): Promise<PeertubePlu
|
|||
|
||||
const uri = CONFIG.PLUGINS.INDEX.URL + '/api/v1/plugins/latest-version'
|
||||
|
||||
const { body } = await doRequest({ uri, body: bodyRequest, json: true, method: 'POST' })
|
||||
const { body } = await doRequest<any>({ uri, body: bodyRequest, json: true, method: 'POST' })
|
||||
|
||||
return body
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue