Updating the materialize library and calls.

This commit is contained in:
Brian McGonagill 2024-07-22 11:56:35 -05:00
parent a118bf38fc
commit e44ef98be4
17 changed files with 10582 additions and 15529 deletions

View file

@ -8,6 +8,7 @@ import { Menus } from '../imports/api/menu.js';
import { MenuItems } from '../imports/api/menuItems.js';
import moment from 'moment';
import { TaskItems } from '../imports/api/tasks.js';
import { UserConfig } from '../imports/api/userConfig.js';
Meteor.publish("SystemConfig", function() {
try {
@ -17,6 +18,14 @@ Meteor.publish("SystemConfig", function() {
}
});
Meteor.publish("UserConfigPrefs", function() {
try {
return UserConfig.find({});
} catch (error) {
console.log(" ERROR: Error accessing user config: " + error);
}
});
Meteor.publish('userList', function() {
return Meteor.users.find({});
});
@ -37,6 +46,14 @@ Meteor.publish("myProducts", function() {
}
});
Meteor.publish("limProducts", function(findItemVal) {
try {
return Products.find({ prodName: {$regex: findItemVal + '.*', $options: 'i' }});
} catch (error) {
cconsole.log(" ERROR pulling limited product data: " + error);
}
})
Meteor.publish("myLists", function() {
try {
return Lists.find( { $or: [ { listOwner: this.userId, listComplete: false }, { listShared: true, listComplete: false } ] } );
@ -47,7 +64,6 @@ Meteor.publish("myLists", function() {
Meteor.publish("myListItems", function(listId) {
try {
// console.log("List Id is: " + listId);
return ListItems.find({ listId: listId });
} catch (error) {
console.log(" ERROR pulling list items for this list: " + error);