Reorganized assignment UI. Added searching by person.

This commit is contained in:
2022-08-16 07:39:15 -07:00
parent 571f3da1d6
commit 1501a36801
9 changed files with 3816 additions and 198 deletions

View File

@@ -12,7 +12,8 @@ export const Staff = new Mongo.Collection('staff');
if (Meteor.isServer) {
// This code only runs on the server
Meteor.publish('staff', function(siteId) {
return Staff.find({siteId});
if(siteId) check(siteId, String);
return siteId ? Staff.find({siteId}) : Staff.find({});
});
}
Meteor.methods({