From fe8f56654bba41e07c54b665232a5cb42830c351 Mon Sep 17 00:00:00 2001 From: Brian McGonagill Date: Tue, 23 Aug 2022 16:18:24 -0500 Subject: [PATCH] remove the filter for just things i create --- server/publish.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); }