This commit is contained in:
Max Hunt 2020-04-27 13:47:11 +01:00
parent f1bc5ff5ec
commit 6ddc031188

View File

@ -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()}