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

Autoupdate and isActual support ? #80

Open
Gby56 opened this issue Jun 11, 2018 · 0 comments
Open

Autoupdate and isActual support ? #80

Gby56 opened this issue Jun 11, 2018 · 0 comments

Comments

@Gby56
Copy link

Gby56 commented Jun 11, 2018

After debugging and testing out automigrate, the autoupdate doesn't work nicely.
adding these lines to the built javascript fixes the problem, although not clean
var details = {};
typeof(index.fields) === 'undefined' ? details.fields = Object.keys(index.keys) : details.fields = [index.fields];
details.type = 'hash';
return collection.createIndex(index.fields || index.keys, index.options, indexCallback);

The callback passed isn't a function apparently.
Also, the isActual function always returns true, I expected the behaviour to return false if the model's json was modified, am I wrong ?

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