Closed drj-io closed 7 years ago
https://github.com/lykmapipo/sails-hook-validation#create States you should have error.Errors & error.Errors.email
Been a long while since I set this up myself though so I probably can't be of much more help.
Thanks for the tip, @texh
Got error.errors to give me what i need.
model:
in the controller I used User.save() and User.update() and neither "err" had a property of "error"
log: --> undefined err contains:
not very useful
finally, using update:
error is the same object as usual and error.error is of course undefined.