Removed Categories and Locations

This commit is contained in:
Brian McGonagill 2024-07-06 11:13:35 -05:00
parent c916c278a2
commit 2b1022f513
23 changed files with 4 additions and 637 deletions

View file

@ -2,8 +2,6 @@ import { SysConfig } from '../imports/api/systemConfig.js';
import { Stores } from '../imports/api/stores.js';
import { UserConfigOptions } from '../imports/api/userConfigOptions.js';
import { Products } from '../imports/api/products.js';
import { Categories } from '../imports/api/category.js';
import { Locations } from '../imports/api/location.js';
import { Lists } from '../imports/api/lists.js';
import { ListItems } from '../imports/api/listItems.js';
import { Menus } from '../imports/api/menu.js';
@ -39,22 +37,6 @@ Meteor.publish("myProducts", function() {
}
});
Meteor.publish("myCategories", function() {
try {
return Categories.find({});
} catch (error) {
console.log(" ERROR pulling category data: " + error);
}
});
Meteor.publish("myLocations", function() {
try {
return Locations.find({});
} catch (error) {
console.log(" ERROR pulling location data: " + error);
}
});
Meteor.publish("myLists", function() {
try {
return Lists.find( { $or: [ { listOwner: this.userId, listComplete: false }, { listShared: true, listComplete: false } ] } );