Update
This commit is contained in:
parent
f1bc5ff5ec
commit
6ddc031188
@ -66,17 +66,8 @@ app.get('/my-products', function(request, responce){
|
|||||||
else {
|
else {
|
||||||
dbRef.orderByChild('owner').equalTo(uid).once('value', function(snapshot){
|
dbRef.orderByChild('owner').equalTo(uid).once('value', function(snapshot){
|
||||||
var data = {
|
var data = {
|
||||||
'x': {
|
'x': {desc: '', holder: '', id: 999, img: '', location: '', name: 'No products listed 😢',
|
||||||
desc: '',
|
owner: '', price: '', public: '', stock: ''
|
||||||
holder: '',
|
|
||||||
id: 999,
|
|
||||||
img: '',
|
|
||||||
location: '',
|
|
||||||
name: 'No products listed 😢',
|
|
||||||
owner: '',
|
|
||||||
price: '',
|
|
||||||
public: '',
|
|
||||||
stock: ''
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
if (snapshot.val()) {data = snapshot.val()}
|
if (snapshot.val()) {data = snapshot.val()}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user