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,
|
||||
|
||||
@@ -104,7 +104,6 @@ class ClubService {
|
||||
include: [
|
||||
{
|
||||
model: User,
|
||||
as: 'userClub',
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user