Cleaning up type ahead

This commit is contained in:
Brian McGonagill 2024-07-07 18:59:40 -05:00
parent cba5026ee4
commit dbd945391d
4 changed files with 11 additions and 14 deletions

View file

@ -37,14 +37,6 @@ Meteor.publish("myProducts", function() {
}
});
Meteor.publish("listProducts", function(itemNameListing) {
try {
return Products.find({ itemName: {$regex: itemNameListing + '.*', $options: 'i'}}, { limit: 5 });
} catch (error) {
console.log(" ERROR pulling items by filtered item name: " + error);
}
});
Meteor.publish("myLists", function() {
try {
return Lists.find( { $or: [ { listOwner: this.userId, listComplete: false }, { listShared: true, listComplete: false } ] } );