Once you pull the latest changes please remove your node_modules running followin command: rm -rf node_modules
and run npm i. The reason is that the spread and rest operatorscan only be used in Node.js version 8.0.0 and above
Testing Instructions for Postman
Create Kid. Make sure you pass JWT token cause only authorized and authenticated user can create a kid
Get the list of kids for particular userUpdate Kid InfoDelete Kid (Once Kid is deleted it also removed from array in User model)
Shared Kid
Created separate service and controller for that.
Checklist
[x] Pull Request title includes the issue number and a brief description of the change.
[x] All changes should be tested and verified to work correctly.
[x] Code follows backend best practices.
[x] Branch names follow the conventions in the contributing file.
[x] Commit messages follow the naming conventions in the contributing file.
[x] No sensitive data or secrets are included in the codebase.
Create Kid service and Kid controller
Notes
Once you pull the latest changes please remove your node_modules running followin command:
rm -rf node_modules
and runnpm i
. The reason is that thespread and rest operators
can only be used in Node.js version 8.0.0 and aboveTesting Instructions for Postman
Create Kid. Make sure you pass JWT token cause only authorized and authenticated user can create a kid Get the list of kids for particular user Update Kid Info Delete Kid (Once Kid is deleted it also removed from array in User model)
Shared Kid Created separate service and controller for that.
Checklist