Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chore: add missing "await" in aws-s3 publishing code
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
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.