Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into main
  • Loading branch information
max-schlenz committed Oct 14, 2023
2 parents 732e4da + e9bda2d commit 8f8cd12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nestjs/conf/src/match/service/match.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ export class MatchService {
}

async finishMatch(room: Room): Promise<Match | null> {
const { state, flawlessVictory } = this.determineMatchState(room);
const match = await this.prisma.match.findUnique({
where: {
id: room.id,
Expand All @@ -295,8 +296,6 @@ export class MatchService {
return null;
}

const { state, flawlessVictory } = this.determineMatchState(room);

const updatedMatch = await this.prisma.match.update({
where: {
id: room.id,
Expand Down

0 comments on commit 8f8cd12

Please sign in to comment.