diff --git a/server/publish.js b/server/publish.js index 3917c76..6011873 100644 --- a/server/publish.js +++ b/server/publish.js @@ -21,7 +21,7 @@ Meteor.publish('userList', function() { Meteor.publish("storeInfo", function() { try { - return Stores.find({ owner: this.userId }); + return Stores.find({}); } catch (error) { console.log(" ERROR pulling store data: " + error); } @@ -29,7 +29,7 @@ Meteor.publish("storeInfo", function() { Meteor.publish("myProducts", function() { try { - return Products.find({ prodOwner: this.userId }); + return Products.find({}); } catch (error) { console.log(" ERROR pulling product data: " + error); } @@ -37,7 +37,7 @@ Meteor.publish("myProducts", function() { Meteor.publish("myCategories", function() { try { - return Categories.find({ categoryOwner: this.userId }); + return Categories.find({}); } catch (error) { console.log(" ERROR pulling category data: " + error); } @@ -45,7 +45,7 @@ Meteor.publish("myCategories", function() { Meteor.publish("myLocations", function() { try { - return Locations.find({ owner: this.userId }); + return Locations.find({}); } catch (error) { console.log(" ERROR pulling location data: " + error); }