Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alputer committed Jan 27, 2024
1 parent 9c07a10 commit fbcb68f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class UserService {
public async completeLevel(username: string): Promise<void> {
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,
Expand Down

0 comments on commit fbcb68f

Please sign in to comment.