From ad63f5189ffe262e013f2bb9da69c66bed7801ee Mon Sep 17 00:00:00 2001 From: Nils Knappmeier Date: Tue, 21 Jan 2020 21:52:23 +0100 Subject: [PATCH] chore: add missing "await" in aws-s3 publishing code closes #1644 --- tasks/publish-to-aws.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/publish-to-aws.js b/tasks/publish-to-aws.js index b551e1c95..49655fa17 100644 --- a/tasks/publish-to-aws.js +++ b/tasks/publish-to-aws.js @@ -59,10 +59,10 @@ module.exports = function(grunt) { 'handlebars.runtime.js', 'handlebars.runtime.min.js' ]; - const publishPromises = filenames.map(filename => { + const publishPromises = filenames.map(async filename => { const nameInBucket = getNameInBucket(filename, suffix); const localFile = getLocalFile(filename); - uploadToBucket(localFile, nameInBucket); + await uploadToBucket(localFile, nameInBucket); grunt.log.writeln( `Published ${localFile} to build server (${nameInBucket})` );