Commit a2c8e1ec authored by nanahira's avatar nanahira

Update src/tournament/tournament.service.ts

parent 56a70811
Pipeline #40061 passed with stages
in 1 minute and 51 seconds
......@@ -97,7 +97,7 @@ export class TournamentService extends CrudService(Tournament, {
const fetchTournament = async () => {
const result = await this.findOne(id);
if (result.data) {
if (result.data.status === TournamentStatus.Ready && !noAnalytics) {
if (result.data.status !== TournamentStatus.Ready && !noAnalytics) {
result.data.analytics();
}
}
......@@ -323,7 +323,7 @@ export class TournamentService extends CrudService(Tournament, {
dto.tournamentId,
user,
false,
true,
false,
);
participants = tournament.participants.map((p) =>
Object.assign(new Participant(), {
......
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