Skip to content

Commit

Permalink
fix: fetch the correct player list
Browse files Browse the repository at this point in the history
  • Loading branch information
cskiwi committed Jan 29, 2024
1 parent e668f8f commit ed7b241
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,21 +277,17 @@ export class UpdateRankingService {
const malePlayers = await Player.findAll({
attributes: ['id', 'memberId', 'gender'],
where: {
memberId: {
[Op.in]: memberIdsMale,
},
competitionPlayer: false,
memberId: memberIdsMale,
gender: 'F',
},
transaction,
});

const femalePlayers = await Player.findAll({
attributes: ['id', 'memberId', 'gender'],
where: {
memberId: {
[Op.in]: memberIdsFemale,
},
competitionPlayer: true,
memberId: memberIdsFemale,
gender: 'M',
},
transaction,
});
Expand Down

0 comments on commit ed7b241

Please sign in to comment.