Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 7 - postInsert error #289

Open
adrianmallett opened this issue Jun 10, 2016 · 2 comments
Open

Chapter 7 - postInsert error #289

adrianmallett opened this issue Jun 10, 2016 · 2 comments

Comments

@adrianmallett
Copy link

When trying to submit a new post, I'm getting a 'postInsert method not found' error and the post fails to submit. I've checked my code and it seems identical to that in your book.

Any ideas?

Adrian

@lijuanfan
Copy link

Hi,
Do you know the answer? I met the same question.

@lijuanfan
Copy link

lijuanfan commented Sep 2, 2017

lib/collections/posts.js
change the code like this:
delete this line---- check(Meteor.userId(), String);
add this line ---- check(this.userId, String);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants