Commit 34be906e authored by nanahira's avatar nanahira

Update src/tournament/tournament.service.ts

parent def9654e
Pipeline #39603 passed with stages
in 3 minutes and 43 seconds
...@@ -74,7 +74,7 @@ export class TournamentService extends CrudService(Tournament, { ...@@ -74,7 +74,7 @@ export class TournamentService extends CrudService(Tournament, {
result.data?.participants?.forEach((p) => result.data?.participants?.forEach((p) =>
this.participantService.wipeDeckbuf(user, p, result.data), this.participantService.wipeDeckbuf(user, p, result.data),
); );
if(this.status === TournamentStatus.Ready && !noAnalytics) { if(result.data?.status === TournamentStatus.Ready && !noAnalytics) {
result.data?.analytics(); result.data?.analytics();
} }
return result; return result;
......
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