We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c84482e + a4f7e6a commit 21e8654Copy full SHA for 21e8654
src/main/kotlin/org/gitanimals/identity/domain/UserService.kt
@@ -18,7 +18,7 @@ class UserService(
18
@Retryable(retryFor = [ObjectOptimisticLockingFailureException::class])
19
@Transactional
20
fun givePoint(username: String, point: Long, reason: String) {
21
- getUserByName(username).givePoint(point, reason)
+ userRepository.findByName(username)?.givePoint(point, reason)
22
}
23
24
0 commit comments