mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Updated Lists to pull last viewed list from db
This commit is contained in:
parent
be07ec72bd
commit
3ad8fab67b
5 changed files with 97 additions and 6 deletions
|
|
@ -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({});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue