Closed edzillion closed 5 years ago
I refactored the routes so they are much simpler now:
router.get('/:id', usersController.findOne); router.post('/:id', usersController.addOne); router.delete('/:id', usersController.deleteOne);
and got rid of updateOne()
updateOne()
I have the models returning related rows when you findOne() and deleting / unrelating when rows when you deleteOne()
findOne()
deleteOne()
Updated the auth middleware to use the aws-sdk
aws-sdk
Added seeds and migrations for current schema. Settings in the top of the file determine the amount of records seeded:
const requiredOrganizations = 2 const notificationsPerUser = 3
I have moved the env stuff out of the repo and nuked that file (which will break previous versions :( )
env
I refactored the routes so they are much simpler now:
and got rid of
updateOne()
I have the models returning related rows when you
findOne()
and deleting / unrelating when rows when youdeleteOne()
Updated the auth middleware to use the
aws-sdk
Added seeds and migrations for current schema. Settings in the top of the file determine the amount of records seeded:
I have moved the
env
stuff out of the repo and nuked that file (which will break previous versions :( )