{
const query = 'SELECT * FROM "actor" WHERE "serverId" IS NULL AND "publicKey" IS NULL'
const options = { type: Sequelize.QueryTypes.SELECT as Sequelize.QueryTypes.SELECT }
- const [ res ] = await utils.sequelize.query(query, options)
+ const [ res ] = await utils.sequelize.query<any>(query, options)
for (const actor of res) {
const { privateKey, publicKey } = await createPrivateAndPublicKeys()
await Bluebird.map(shareUrls, async shareUrl => {
try {
// Fetch url
- const { body } = await doRequest({
+ const { body } = await doRequest<any>({
uri: shareUrl,
json: true,
activityPub: true
throw new Error('Recursion limit reached when resolving a thread')
}
- const { body } = await doRequest({
+ const { body } = await doRequest<any>({
uri: url,
json: true,
activityPub: true
await Bluebird.map(ratesUrl, async rateUrl => {
try {
// Fetch url
- const { body } = await doRequest({
+ const { body } = await doRequest<any>({
uri: rateUrl,
json: true,
activityPub: true
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 })
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
}
this.lastCheck = new Date()
- const { body } = await doRequest({ uri, qs, json: true })
+ const { body } = await doRequest<any>({ uri, qs, json: true })
const hosts: string[] = body.data.map(o => o.host)
const chunks = chunk(hosts, 20)