Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Posts.insert({
- post:post,
- author:username,
- date:date,
- createdAt:new Date(),
- comment:{
- commentBy:'',
- commentMsg:''
- },
- userId:Meteor.userId()
- })
- Posts.update(thisPost,{$addToSet:{comment.commentedBy:Name,comment.commentMsg:post}});
Add Comment
Please, Sign In to add comment