Skip to content

Commit

Permalink
Merge pull request #47 from chichicuervo/patch-1
Browse files Browse the repository at this point in the history
support bucketNameKey in syncMetadata
  • Loading branch information
k1LoW authored Mar 5, 2020
2 parents 6b752ea + 5bb4359 commit a65f410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class ServerlessS3Sync {
if (s.hasOwnProperty('acl')) {
acl = s.acl;
}
if (!s.bucketName || !s.localDir) {
if ((!s.bucketName && !s.bucketNameKey) || !s.localDir) {
throw 'Invalid custom.s3Sync';
}
const localDir = path.join(servicePath, s.localDir);
Expand Down

0 comments on commit a65f410

Please sign in to comment.