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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Member

glasser commented Aug 16, 2014

Thanks, fixed.

@taromero

This comment has been minimized.

taromero commented Aug 16, 2014

Thanks!

@surielmx

This comment has been minimized.

surielmx commented Nov 29, 2015

what was the solution?

@glasser

This comment has been minimized.

Member

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