diff options
| author | Wes Bos <wesbos@gmail.com> | 2017-08-25 09:33:53 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2017-08-25 09:33:53 -0400 |
| commit | 7af74ff8988961c988f03c95961b70c2918521ae (patch) | |
| tree | d73cd0dd94751b76595b7febcae4162811c2040b /functions/getPrice.js | |
| parent | 416c2cbae0e69b724876d232bf813eefd7550174 (diff) | |
yay
Diffstat (limited to 'functions/getPrice.js')
| -rw-r--r-- | functions/getPrice.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/functions/getPrice.js b/functions/getPrice.js index 61c29e6..7808a85 100644 --- a/functions/getPrice.js +++ b/functions/getPrice.js @@ -18,7 +18,9 @@ function getItem(id) { }) } -getItem().then(x => x.json()).then(res => { - console.log(res.data.Item.price); -}).catch(console.log) +module.exports = function(event) { + getItem().then(x => x.json()).then(res => { + console.log(res.data.Item.price); + }).catch(console.log) +} |
