Skip to content

Commit 8eebc99

Browse files
committed
add .promise() to S3 getObject call
1 parent 01f6285 commit 8eebc99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ class RESPONSE {
246246
}
247247

248248
// Attempt to get the object from S3
249-
let data = await S3.getObject(params)
249+
let data = await S3.getObject(params).promise()
250250

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

0 commit comments

Comments
 (0)