Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
fix(s3): Remove distributionId from params of uploadChangedFilesInDir
Browse files Browse the repository at this point in the history
  • Loading branch information
ReidWeb committed Sep 14, 2018
1 parent 9f64ec7 commit c1647b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function deploy(path, bucketName, distributionId, profile, verboseMode) {

AWS.config.credentials = new AWS.SharedIniFileCredentials({ profile });

s3.uploadChangedFilesInDir(path, bucketName, distributionId, verboseMode).then((res) => {
s3.uploadChangedFilesInDir(path, bucketName, verboseMode).then((res) => {
if (distributionId && res.changedFiles.length > 0) {
console.log(chalk.green(res.message));
console.log(chalk.yellow(`Commencing invalidation operation for distribution ${distributionId}...`));
Expand Down
2 changes: 1 addition & 1 deletion src/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function uploadFiles(pathToUpload, fileList, bucketName, verboseMode, isCli) {
});
}

function uploadChangedFilesInDir(pathToUpload, bucketName, distId, verboseMode, isCli) {
function uploadChangedFilesInDir(pathToUpload, bucketName, verboseMode, isCli) {
return new Promise((resolve, reject) => {
const changedFiles = [];
recursive(pathToUpload, (err, fileList) => {
Expand Down

0 comments on commit c1647b1

Please sign in to comment.