chore: add missing "await" in aws-s3 publishing code

closes #1644
This commit is contained in:
Nils Knappmeier
2020-01-21 21:52:23 +01:00
parent 586e672c8b
commit ad63f5189f
+2 -2
View File
@@ -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})`
);