Skip to content

Commit ad63f51

Browse files
committedJan 21, 2020
chore: add missing "await" in aws-s3 publishing code
closes #1644
1 parent 586e672 commit ad63f51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎tasks/publish-to-aws.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ module.exports = function(grunt) {
5959
'handlebars.runtime.js',
6060
'handlebars.runtime.min.js'
6161
];
62-
const publishPromises = filenames.map(filename => {
62+
const publishPromises = filenames.map(async filename => {
6363
const nameInBucket = getNameInBucket(filename, suffix);
6464
const localFile = getLocalFile(filename);
65-
uploadToBucket(localFile, nameInBucket);
65+
await uploadToBucket(localFile, nameInBucket);
6666
grunt.log.writeln(
6767
`Published ${localFile} to build server (${nameInBucket})`
6868
);

0 commit comments

Comments
 (0)
Please sign in to comment.