diff options
author | Joe Robinson <joe@lc8n.com> | 2018-03-06 12:57:28 +0000 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2018-03-06 12:57:28 +0000 |
commit | a6d4523b9ebbbcbedff22201a619f3ba409722ad (patch) | |
tree | 2116c957d166d73c7b24fb611b19ba6b140ab7c9 /handler.js | |
parent | 991ed910b580a49f7e44176974ee6c2dcf942d18 (diff) |
Update handler.js
Diffstat (limited to 'handler.js')
-rw-r--r-- | handler.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -7,7 +7,9 @@ const s3 = new AWS.S3(); module.exports.save = (event, context, callback) => { console.log(event.Records[0].kinesis); - fetch(event.image_url) + var url = new Buffer(event.Records[0].kinesis.data, 'base64').toString('utf8'); + console.log(url); + fetch(url) .then((response) => { if (response.ok) { return response; |