Updated assignments by person to allow unassigning and assigning.

This commit is contained in:
2022-08-20 22:51:54 -07:00
parent 2b9825159b
commit 8d4b72c581
13 changed files with 808 additions and 638 deletions

View File

@@ -77,6 +77,9 @@ if (Meteor.isServer) {
Meteor.publish('assets', function() {
return Assets.find({});
});
Meteor.publish('assetsAssignedTo', function(personId) {
return Assets.find({assigneeId: personId});
});
}
Meteor.methods({
'assets.add'(assetTypeId, assetId, serial, condition, conditionDetails) {