Skip to content

Commit

Permalink
release: 1.0.0 (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb authored Dec 23, 2024
2 parents 0202ecf + 88f4f2f commit cc4de1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/kotlin/org/gitanimals/render/domain/UserService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<Int, Int>): User =
Expand Down

0 comments on commit cc4de1a

Please sign in to comment.