Skip to content

Commit c4561a4

Browse files
Arthur Cinaderflovilmart
Arthur Cinader
authored andcommitted
Fix bug that put credentials on the wrong object. (#19)
1 parent 39cacc1 commit c4561a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ function S3Adapter() {
2828
};
2929

3030
if (options.accessKey && options.secretKey) {
31-
options.accessKeyId = options.accessKey;
32-
options.secretAccessKey = options.secretKey;
31+
s3Options.accessKeyId = options.accessKey;
32+
s3Options.secretAccessKey = options.secretKey;
3333
}
3434

3535
this._s3Client = new AWS.S3(s3Options);

0 commit comments

Comments
 (0)