diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-02-29 15:31:51 -0500 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-02-29 15:31:51 -0500 |
commit | 7bf05274e1f3c75217db11bf3d4112431f55e1b5 (patch) | |
tree | 34baa97975c2702a2ed1b86477eb103b0197e7a5 /src | |
parent | 99a23aea54f1430594e70724b252da8f8693a24e (diff) |
allow proper type inference for batched arrays systemwide
Diffstat (limited to 'src')
-rw-r--r-- | src/server/ApiManagers/GooglePhotosManager.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<NewMediaItem>( 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<any> => { + async (batch: NewMediaItem[], collector): Promise<void> => { const parameters = { method: 'POST', headers: headers('json', bearerToken), |