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

Mongo are not being updated correctly #3

Open
bilicio opened this issue Nov 23, 2018 · 1 comment
Open

Mongo are not being updated correctly #3

bilicio opened this issue Nov 23, 2018 · 1 comment

Comments

@bilicio
Copy link

bilicio commented Nov 23, 2018

Hi @sjones6 ! thank you for this nice adapter.
Im having a little problem on mongo.
the data are saving but are not updating the list correcly.
An example is, on node console log i got this list of data:
{ _: { '#': 'cadastro', '>': { jou51p9aFBws9WvZxlMe: 1542984356640, jou52pp9tBWOFvlX51v2: 1542984403870, jou561k9O55Uxv1nqe3Q: 1542984559211 } }, jou51p9aFBws9WvZxlMe: { '#': 'jou51p9aFBws9WvZxlMe' }, jou52pp9tBWOFvlX51v2: { '#': 'jou52pp9tBWOFvlX51v2' }, jou561k9O55Uxv1nqe3Q: { '#': 'jou561k9O55Uxv1nqe3Q' } }

on mongo i got this:

{ "_id": "cadastro", "key": "cadastro", "val": { "_": { "#": "cadastro", ">": { "jou52pp9tBWOFvlX51v2": 1542984403870 } }, "jou52pp9tBWOFvlX51v2": { "#": "jou52pp9tBWOFvlX51v2" } } }

the "cadastro" are not been updated when i add more data. the data is only saved by new nodes and not on the master "cadastro". do you know why?

thank you!

@bilicio bilicio changed the title Skipping add nodes to list Mongo are not being updated correctly Nov 23, 2018
@bilicio
Copy link
Author

bilicio commented Nov 23, 2018

so when i retrive the data directly from mongo ive got only one result. If i request the data from gun ive got 3 results. i think the problem is on the index data. doesnt matter how many data i put, the index is the same on mongo.

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

1 participant