refactoring models and create grant to async await
This commit is contained in:
@@ -45,11 +45,5 @@ module.exports = (sequelize, DataTypes) => {
|
||||
country: DataTypes.STRING
|
||||
});
|
||||
|
||||
Donor.associate = models => {
|
||||
Donor.hasMany(models.Grant, {
|
||||
foreignKey: 'donor_id'
|
||||
});
|
||||
};
|
||||
|
||||
return Donor;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user