From 7bf05274e1f3c75217db11bf3d4112431f55e1b5 Mon Sep 17 00:00:00 2001 From: Sam Wilkins Date: Sat, 29 Feb 2020 15:31:51 -0500 Subject: allow proper type inference for batched arrays systemwide --- src/server/ApiManagers/GooglePhotosManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/ApiManagers/GooglePhotosManager.ts b/src/server/ApiManagers/GooglePhotosManager.ts index 98f6a1404..88219423d 100644 --- a/src/server/ApiManagers/GooglePhotosManager.ts +++ b/src/server/ApiManagers/GooglePhotosManager.ts @@ -69,7 +69,7 @@ export default class GooglePhotosManager extends ApiManager { const interval = { magnitude: 100, unit: TimeUnit.Milliseconds }; const newMediaItems = await batched.batchedMapPatientInterval( interval, - async (batch: any, collector: any, { completedBatches }: any) => { + async (batch, collector, { completedBatches }) => { for (let index = 0; index < batch.length; index++) { const { url, description } = batch[index]; // a local function used to record failure of an upload @@ -305,7 +305,7 @@ export namespace Uploader { // ...so we execute them in delayed batches and await the entire execution return batched.batchedMapPatientInterval( { magnitude: 100, unit: TimeUnit.Milliseconds }, - async (batch: NewMediaItem[], collector: any): Promise => { + async (batch: NewMediaItem[], collector): Promise => { const parameters = { method: 'POST', headers: headers('json', bearerToken), -- cgit v1.2.3-70-g09d2