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

Liana fails when fields are not selected by default #122

Open
roopakv opened this issue Oct 3, 2018 · 0 comments
Open

Liana fails when fields are not selected by default #122

roopakv opened this issue Oct 3, 2018 · 0 comments

Comments

@roopakv
Copy link
Contributor

roopakv commented Oct 3, 2018

Expected behavior

We deselect certain fields by default in some of our models. An example would be the password field in the user object.

When we see the object, we should be allowed to modify only the fields that we change.

Actual behavior

The Liana refuses to save since the field is a required field. Further even if I add a value it fails some of our validation checks.

Failure Logs

[forest] 🌳🌳🌳  Cannot update the User #5ab186465f76210fd6f278d3 because of an unexpected issue: ValidationError: password: Cannot read property 'isProfileCompleted' of null

Context

TODO: Please provide any relevant information about your setup.

  • Package Version: ^2.14.2
  • Express Version: ^4.15.4
  • Mongoose Version: ^5.2.13
  • MongoDB Version: 3.6
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