We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After the latest update to Mongoose (v3.6) the models aren't always available in their expected form.
Most likely this has to do with passing the models as constructors from one file to the other - which is not considered best practice.
When they reach the Sync class they have 'lost' their constructor attributes (schema etc.)
Console.log:
backend.handle(req, res, function(err) { ^ TypeError: Object function model(doc, fields, skipId) { if (!(this instanceof model)) return new model(doc, fields, skipId); Model.call(this, doc, fields, skipId); } has no method 'handle' at Sync.handle (/Users/tracend/Repositories/Websites/assetorium/node_modules/crudr/lib/sync.js:55:13) at Sockets.events.Object.keys.forEach.self.io.of.on.events.created (/Users/tracend/Repositories/Websites/assetorium/node_modules/crudr/lib/sockets.js:115:11)
The text was updated successfully, but these errors were encountered:
#42 catching error for malformed backend
aeb3d08
No branches or pull requests
After the latest update to Mongoose (v3.6) the models aren't always available in their expected form.
Most likely this has to do with passing the models as constructors from one file to the other - which is not considered best practice.
When they reach the Sync class they have 'lost' their constructor attributes (schema etc.)
Console.log:
The text was updated successfully, but these errors were encountered: