Adding more methods and views, updated dashboards a bit. Still not ready

This commit is contained in:
Brian McGonagill 2022-08-16 16:46:14 -05:00
parent 266dbd0856
commit 42643a37f5
23 changed files with 374 additions and 32 deletions

View file

@ -4,6 +4,7 @@ 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';
Meteor.publish("SystemConfig", function() {
try {
@ -47,4 +48,12 @@ Meteor.publish("myLocations", function() {
} catch (error) {
console.log(" ERROR pulling location data: " + error);
}
});
Meteor.publish("myLists", function() {
try {
return Lists.find({ listOwner: this.userId, listComplete: false });
} catch (error) {
console.log(" ERROR pulling list data: " + error);
}
});