-
Notifications
You must be signed in to change notification settings - Fork 28
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
Setup - Mongoosastic support #91
Comments
Hi @bartvanremortele, I am not sure to understand when this error occurs. Thanks for the feedback! |
Yes this occurs when we update or save through forest |
I really want to help, but I need more context.
Looking at the Mongoosastic code (https://github.com/mongoosastic/mongoosastic/blob/2d85bb76473671119abf2459fec273e0220695d4/lib/mongoosastic.js#L240), it looks like the I am not sure that this is an issue with Forest. new Model((params)
.save(function (error, record) {
// ...
}); See here: https://github.com/ForestAdmin/forest-express-mongoose/blob/devel/services/resource-creator.js#L14 |
@bartvanremortele any news about this issue? |
Expected behavior
postSave
called and make use of mongoosastic plugin through the index method which indexes the model in ElasticsearchActual behavior
index
is undefinedFailure Logs
Context
We export our models which already have the mongoosastic plugin mounted but for some reason the
index
method is undefined in the postSaveThe text was updated successfully, but these errors were encountered: