diff --git a/src/services/user.service.ts b/src/services/user.service.ts index b02c1f6..4eb10ee 100644 --- a/src/services/user.service.ts +++ b/src/services/user.service.ts @@ -29,7 +29,7 @@ export class UserService { public async completeLevel(username: string): Promise { const user = await this.userRepository.findUserByUsername(username); const newLevelAndUsername = this.incrementLevel(user.levelAndUsername); - if (user.isInTournament) { + if (user.isInTournament()) { await this.userRepository.completeLevelWithScoreUpdate( user, newLevelAndUsername,