From 3115db9974bbb94c0bc5777cf8a64340f7f9649b Mon Sep 17 00:00:00 2001 From: Arthur Cinader Date: Sat, 6 Aug 2016 10:49:27 -0400 Subject: [PATCH] Fix bug that put credentials on the wrong object. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ff3d5b0d..69ad133d 100644 --- a/index.js +++ b/index.js @@ -28,8 +28,8 @@ function S3Adapter() { }; if (options.accessKey && options.secretKey) { - options.accessKeyId = options.accessKey; - options.secretAccessKey = options.secretKey; + s3Options.accessKeyId = options.accessKey; + s3Options.secretAccessKey = options.secretKey; } this._s3Client = new AWS.S3(s3Options);