diff options
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) +} |
