diff --git a/server/src/main/kotlin/com/fone/profile/domain/service/RetrieveProfilesService.kt b/server/src/main/kotlin/com/fone/profile/domain/service/RetrieveProfilesService.kt index 671e3eea..cb69caab 100644 --- a/server/src/main/kotlin/com/fone/profile/domain/service/RetrieveProfilesService.kt +++ b/server/src/main/kotlin/com/fone/profile/domain/service/RetrieveProfilesService.kt @@ -72,7 +72,7 @@ class RetrieveProfilesService( val profileCategories = profileCategoryRepository.findByProfileId(id) - val profileUser = userRepository.findById(user.id!!) + val profileUser = userRepository.findById(profile.userId) return RetrieveProfileResponse( profile,