Fixed bugs.

This commit is contained in:
2022-09-15 09:13:30 -07:00
parent 6fe980ae6e
commit d7319e340c
5 changed files with 40 additions and 35 deletions

View File

@@ -119,14 +119,14 @@ if (Meteor.isServer) {
}
if(next.asset) {
next.assetType = AssetTypes.findOne({_id: next.asset.assetType})
next.assetType = AssetTypes.findOne({_id: next.asset.assetTypeId})
}
if(next.assigneeId) {
next.assignee = next.asset.assigneeType === "Student" ? Students.findOne({_id: next.assigneeId}) : Staff.findOne({_id: next.assigneeId})
}
}
return result;
} else return null;
}

View File

@@ -118,7 +118,7 @@ if (Meteor.isServer) {
}
if (next.asset) {
next.assetType = AssetTypes.findOne({_id: next.asset.assetType})
next.assetType = AssetTypes.findOne({_id: next.asset.assetTypeId})
if (next.asset.assigneeId) {
next.assignedTo = next.asset.assigneeType === "Student" ? Students.findOne({_id: next.asset.assigneeId}) : Staff.findOne({_id: next.asset.assigneeId})