refactoring models and create grant to async await
This commit is contained in:
@@ -15,7 +15,7 @@ module.exports = models => {
|
||||
donor.hasMany(Grant, { foreignKey: 'donor_id' });
|
||||
|
||||
Grant.belongsToMany(Organization, {
|
||||
through: 'grants_organizations',
|
||||
through: 'Grant_Organization',
|
||||
foreignKey: 'grant_id',
|
||||
otherKey: 'organization_id'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user