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

Collection.upsert working fine only on first call at the client #2413

Closed
taromero opened this issue Aug 15, 2014 · 4 comments
Closed

Collection.upsert working fine only on first call at the client #2413

taromero opened this issue Aug 15, 2014 · 4 comments

Comments

@taromero
Copy link

@taromero taromero commented Aug 15, 2014

When I make an upsert on an element of a collection like Players.upsert(id, data) on the client, it works only for the first time. The subsequent times the upsert call only has effect on the client, and doesn't reach the server.

Meteorpad with an example of .upsert failing here.

If I make the upsert by calling Players.update(id, data, { upsert: true }, it works fine every time.

Meteorpad with an exampe of .update(..., { upsert: true }) working here.

You can test it by opening another browser at the same time with the URL provided at the top of the displayed content, and start touching players name. On the first meteorpad the score will be updated on the other browser only the first time.

@glasser glasser closed this in 66ea15a Aug 16, 2014
@glasser
Copy link
Member

@glasser glasser commented Aug 16, 2014

Thanks, fixed.

@taromero
Copy link
Author

@taromero taromero commented Aug 16, 2014

Thanks!

@surielmx
Copy link

@surielmx surielmx commented Nov 29, 2015

what was the solution?

@glasser
Copy link
Member

@glasser glasser commented Nov 29, 2015

The commit linked above.

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

Successfully merging a pull request may close this issue.

None yet
3 participants