-
Notifications
You must be signed in to change notification settings - Fork 96
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
feathers-mongoose@3.6.0 break custom model id #151
Comments
Can you post the |
I bet the problem is 1222843#diff-480db08609ef6a51bf20f049cc9bda48R137. I'm not even sure why I added that... |
I updated my first post with the orders-model. |
This was referenced Nov 15, 2016
Merged
This has been fixed in v3.6.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
Create a simple service with a custom model id :
orders-models.js :
Create a "before" hook to initialize the "oId" on create :
Expected behavior
Send a Post request to create a new "Order" without oId. The Order will be created with a oId generated by the hook.
Actual behavior
Mongoose validator send a missing error about the oId.
System configuration
Error happen since I updated feathers-mongoose@3.6.0.
No problem with feathers-mongoose@3.5.3
The text was updated successfully, but these errors were encountered: