From 6ddc031188b0372a57ab238c31c8cac118b133d8 Mon Sep 17 00:00:00 2001 From: Max Hunt Date: Mon, 27 Apr 2020 13:47:11 +0100 Subject: [PATCH] Update --- functions/index.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/functions/index.js b/functions/index.js index 69e713d..bda262b 100644 --- a/functions/index.js +++ b/functions/index.js @@ -66,17 +66,8 @@ app.get('/my-products', function(request, responce){ else { dbRef.orderByChild('owner').equalTo(uid).once('value', function(snapshot){ var data = { - 'x': { - desc: '', - holder: '', - id: 999, - img: '', - location: '', - name: 'No products listed 😢', - owner: '', - price: '', - public: '', - stock: '' + 'x': {desc: '', holder: '', id: 999, img: '', location: '', name: 'No products listed 😢', + owner: '', price: '', public: '', stock: '' }, } if (snapshot.val()) {data = snapshot.val()}