Permalink
Browse files

add .promise() to S3 getObject call

  • Loading branch information...
jeremydaly committed Apr 25, 2018
1 parent 01f6285 commit 8eebc9945f945c6fc7f962a01577bd21d55b80e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/response.js
@@ -246,7 +246,7 @@ class RESPONSE {
}

// Attempt to get the object from S3
let data = await S3.getObject(params)
let data = await S3.getObject(params).promise()

// Set results, type and header
buffer = data.Body

1 comment on commit 8eebc99

@jeremydaly

This comment has been minimized.

Copy link
Owner

jeremydaly commented on 8eebc99 Apr 25, 2018

.promise() works in Lambda, but the test is failing because of how I got it mocked with Sinon.js.

Please sign in to comment.