summaryrefslogtreecommitdiffstats
path: root/functions/getPrice.js
diff options
context:
space:
mode:
Diffstat (limited to 'functions/getPrice.js')
-rw-r--r--functions/getPrice.js8
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)
+}