Skip to content

Commit

Permalink
chore: add missing "await" in aws-s3 publishing code
Browse files Browse the repository at this point in the history
closes #1644
  • Loading branch information
nknapp committed Jan 21, 2020
1 parent 586e672 commit ad63f51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/publish-to-aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})`
);
Expand Down

0 comments on commit ad63f51

Please sign in to comment.