`promises` is never used. I'd suggest just changing the `data.Contents.map` above to `data.Contents.forEach` and adding to `allPromises` from within there.