Merge branch 'master' of https://github.com/ksjdragon/hourglass
This commit is contained in:
commit
32324957ca
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user