This commit is contained in:
dahyeon committed 2026-04-27 19:23:26 -07:00
1 parent 1bbfc901e8
commit 4dba82ca03
18 files changed
+2146 -15

No files matched your search

@@ -4,6 +4,7 @@ import {
NotFoundException,
} from '@nestjs/common';
import mongoose from 'mongoose';
import { CommunityStatsService } from '../community-stats/community-stats.service';
import { ConnectionService } from '../global/database/connection.service';
import {
Match,
@@ -46,6 +47,7 @@ export class MatchService {
constructor(
private readonly connectionService: ConnectionService,
private readonly tournamentCodeService: TournamentCodeService,
private readonly communityStatsService: CommunityStatsService,
) {}
public async create(params: CreateMatchParams): Promise<MatchDocument> {
@@ -140,6 +142,7 @@ export class MatchService {
}
await this.tournamentCodeService.releaseFromMatch(match);
await match.deleteOne();
await this.communityStatsService.invalidateCommunity(params.communityId);
}
public async join(params: JoinMatchParams): Promise<MatchDocument> {