This commit is contained in:
Kenneth Jao 2016-08-12 17:07:24 -04:00
commit 32324957ca

View File

@ -147,19 +147,6 @@ Meteor.methods({
'joinClass': function(input) { 'joinClass': function(input) {
change = input[0]; change = input[0];
pass = input[1]; pass = input[1];
// if (Meteor.user().profile.classes === undefined) {
// curr = Meteor.user().profile;
// curr.classes = [];
// Meteor.users.update({
// _id: Meteor.userId()
// }, {
// $set: {
// profile: curr
// }
// });
// }
prof = Meteor.user().profile; prof = Meteor.user().profile;
found = classes.findOne({ found = classes.findOne({
_id: change, _id: change,