Fixed bugs.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user