Removed references to the aggregate code; Commented out the import of the meteor package.

This commit is contained in:
2022-08-14 17:31:34 -07:00
parent cf51200393
commit 071534a420
5 changed files with 26 additions and 46 deletions

View File

@@ -4,7 +4,6 @@ import { check } from 'meteor/check';
import {Sites} from "./sites";
import { Roles } from 'meteor/alanning:roles';
import {parse} from 'csv-parse';
import { ReactiveAggregate } from 'meteor/tunguska:reactive-aggregate';
export const Students = new Mongo.Collection('students');
@@ -15,15 +14,6 @@ if (Meteor.isServer) {
Meteor.publish('students', function(siteId) {
return Students.find({siteId});
});
Meteor.publish('studentWithAssetAssignments', function(query) {
ReactiveAggregate(this, Students, {$lookup: {
from: 'assetAssignments',
localField: '_id',
foreignField: 'assigneeId',
as: 'assignments'
}}, {});
//Note: The options can use {clientCollection: 'your_name_here'} as the options to change the collection name on the client.
});
Meteor.methods({
'students.getPossibleGrades'() {