Commit f0d0a73e authored by nanahira's avatar nanahira

fix

parent bdbcf7e0
Pipeline #37786 passed with stages
in 3 minutes and 2 seconds
...@@ -303,7 +303,9 @@ export class TournamentService extends CrudService(Tournament, { ...@@ -303,7 +303,9 @@ export class TournamentService extends CrudService(Tournament, {
'只能从瑞士轮比赛导入选手。', '只能从瑞士轮比赛导入选手。',
).toException(); ).toException();
} }
participants = sortAfterSwiss(participants.slice(dto.swissMaxPlayers)); participants = sortAfterSwiss(
participants.slice(0, dto.swissMaxPlayers),
);
} }
} else if (dto.ygobbsCompt) { } else if (dto.ygobbsCompt) {
const comptId = dto.getYgobbsComptId(); const comptId = dto.getYgobbsComptId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment