fixes
This commit is contained in:
@@ -85,8 +85,8 @@ Season.hasMany(Match, { foreignKey: 'seasonId', as: 'matches' });
|
||||
Match.belongsTo(Location, { foreignKey: 'locationId', as: 'location' });
|
||||
Location.hasMany(Match, { foreignKey: 'locationId', as: 'matches' });
|
||||
|
||||
User.belongsToMany(Club, { through: UserClub, foreignKey: 'userId', otherKey: 'clubId' });
|
||||
Club.belongsToMany(User, { through: UserClub, foreignKey: 'clubId', otherKey: 'userId' });
|
||||
User.belongsToMany(Club, { through: UserClub, foreignKey: 'userId' });
|
||||
Club.belongsToMany(User, { through: UserClub, foreignKey: 'clubId' });
|
||||
|
||||
export {
|
||||
User,
|
||||
|
||||
Reference in New Issue
Block a user