From 007ea30d42efb079de3d8189ab866049f69b31f9 Mon Sep 17 00:00:00 2001 From: Yaman Qalieh Date: Sat, 3 Sep 2016 21:36:33 -0400 Subject: [PATCH] publish personal work --- hourglass/server/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hourglass/server/main.js b/hourglass/server/main.js index 6e2ba99..e139fb5 100644 --- a/hourglass/server/main.js +++ b/hourglass/server/main.js @@ -85,12 +85,12 @@ Meteor.publish('work', function() { return work.find({ // Only return work of enrolled classes class: { - $in: userprofile.profile.classes + $in: userprofile.profile.classes.concat(Meteor.userId()) } }); } else { Meteor.call('createProfile', this.userId); - return classes.find({ + return work.find({ _id: null }); }