diff --git a/src/main/kotlin/org/gitanimals/render/domain/UserService.kt b/src/main/kotlin/org/gitanimals/render/domain/UserService.kt index fe3f56b..3d0e46e 100644 --- a/src/main/kotlin/org/gitanimals/render/domain/UserService.kt +++ b/src/main/kotlin/org/gitanimals/render/domain/UserService.kt @@ -48,8 +48,9 @@ class UserService( fun getUserByName(name: String): User = userRepository.findByName(name) ?: throw IllegalArgumentException("Cannot find exists user by name \"$name\"") - fun getUserByNameWithAllContributions(name: String): User = userRepository.findByName(name) - ?: throw IllegalArgumentException("Cannot find exists user by name \"$name\"") + fun getUserByNameWithAllContributions(name: String): User = + userRepository.findByNameWithContributions(name) + ?: throw IllegalArgumentException("Cannot find exists user by name \"$name\"") @Transactional fun createNewUser(name: String, contributions: Map): User =