From 7af74ff8988961c988f03c95961b70c2918521ae Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 25 Aug 2017 09:33:53 -0400 Subject: yay --- functions/getPrice.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'functions/getPrice.js') 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) +} -- cgit v1.3