Never use a for in loop on arrays. Use promises.forEach(function(p)), or a regular for loop.