From cfa153809ea8773fd2c03bad369b640116ed874c Mon Sep 17 00:00:00 2001 From: Matt Zabriskie Date: Thu, 23 May 2019 08:42:02 -0600 Subject: [PATCH] Adding id field --- .gitignore | 1 + lambda/tickets.js | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index b997939..fbb2771 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store +.netlify/ npm-debug.log node_modules/ diff --git a/lambda/tickets.js b/lambda/tickets.js index f9d0c3c..1d186d9 100644 --- a/lambda/tickets.js +++ b/lambda/tickets.js @@ -13,6 +13,7 @@ exports.handler = function(event, context, callback) { : res.data.data .filter(r => !r.attributes.secret) .map(r => ({ + id: r.attributes.id, title: r.attributes.title, description: r.attributes.description, price: r.attributes.price,