Skip to content

Commit

Permalink
Update store.js
Browse files Browse the repository at this point in the history
  • Loading branch information
debianmaster authored Jun 17, 2017
1 parent d175d5d commit d3cc22c
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions api/routes/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,19 @@ exports.insertDummyData = function(){
];
db.collection('Categories', function(err, collection) {
collection.insert(categories, {safe:true}, function(err, result) {
console.log(err,result,"data inserted");
console.log(err,result,"cat data inserted");
});
});
});

var products=[ {name:"Wire",title:"Wire",img:'img/storeImages/08566-01-L_l_th.jpg',images:['storeImages/08566-01-L_l_th.jpg'],
documents:"Wire",features:"Wire",shipping:55,caption:"",price:20,subCat:1}]

db.collection('Products', function(err, collection) {
collection.insert(products, {safe:true}, function(err, result) {
console.log(err,result,"products data inserted");
});
});
}
};


0 comments on commit d3cc22c

Please sign in to comment.