Skip to content

Commit

Permalink
renames collection
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamBrodzinski committed Jul 19, 2015
1 parent 20d8322 commit c086efd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/components/Feed/FeedList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class FeedList extends React.Component {
{
this.props.postItems.map(doc => {
// pull comments from MiniMongo client store
var comments = PostComments.find({postId: doc._id}, {sort: {createdAt: -1}}).fetch();
var comments = Comments.find({postId: doc._id}, {sort: {createdAt: -1}}).fetch();

return <FeedItem key={doc._id}
{ ...doc }
Expand Down
4 changes: 2 additions & 2 deletions server/publications/feed.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*global Posts, PostComments */
/*global Posts, Comments */

var optional = Match.Optional;

Expand Down Expand Up @@ -52,7 +52,7 @@ Meteor.publish('feed', function(fields, limits, postIds) {
// returns Mongo Cursors
return [
Posts.find({}, {fields: fields.posts, sort: {createdAt: -1}, limit: limits.posts}),
PostComments.find({postId: {$in: postIds ? postIds : []}}, {fields: fields.postComments})
Comments.find({postId: {$in: postIds ? postIds : []}}, {fields: fields.postComments})
];
});

0 comments on commit c086efd

Please sign in to comment.