refactoring models and create grant to async await

This commit is contained in:
Arjun Patel
2019-03-16 23:49:11 -07:00
parent e5c204890e
commit 5587c296e4
6 changed files with 97 additions and 79 deletions
-6
View File
@@ -45,11 +45,5 @@ module.exports = (sequelize, DataTypes) => {
country: DataTypes.STRING
});
Donor.associate = models => {
Donor.hasMany(models.Grant, {
foreignKey: 'donor_id'
});
};
return Donor;
};