Updated Lists to pull last viewed list from db

This commit is contained in:
Brian McGonagill 2024-07-30 10:30:10 -05:00
parent be07ec72bd
commit 3ad8fab67b
5 changed files with 97 additions and 6 deletions

View file

@ -10,6 +10,7 @@ import moment from 'moment';
import { TaskItems } from '../imports/api/tasks.js';
import { UserConfig } from '../imports/api/userConfig.js';
import { MenuProdLinks } from '../imports/api/menuProdLinks.js';
import { UserLast } from '../imports/api/userLast.js';
Meteor.publish("SystemConfig", function() {
try {
@ -31,6 +32,14 @@ Meteor.publish('userList', function() {
return Meteor.users.find({});
});
Meteor.publish("userLastView", function() {
try {
return UserLast.find({ userId: this.userId });
} catch (error) {
console.log(" ---- ERROR pulling user last info: " + error);
}
});
Meteor.publish("storeInfo", function() {
try {
return Stores.find({});