model set up and associations

This commit is contained in:
Arjun Patel
2019-01-15 23:14:05 -08:00
parent a4e4394329
commit 86dd4c8cdb
8 changed files with 59 additions and 6 deletions
@@ -22,6 +22,7 @@ exports.findByDonorId = (req, res, next) => {
}
})
.then(grants => {
const grants_full_info = grants.map(grant => {});
res.status(200).json({
grants,
number_grants: grants.length