diff --git a/src/main/kotlin/data/repository/UserRepository.kt b/src/main/kotlin/data/repository/UserRepository.kt index b264ef4..2641a6a 100644 --- a/src/main/kotlin/data/repository/UserRepository.kt +++ b/src/main/kotlin/data/repository/UserRepository.kt @@ -57,7 +57,7 @@ class UserRepository { } suspend fun getUserByUuid(uuid: UUID): UserResponse = DatabaseSettings.dbQuery{ - val user = (UserTable innerJoin ProfileTable innerJoin AddressTable).selectAll().where { UserTable.uuid eq uuid }.firstOrNull() + val user = (UserTable innerJoin ProfileTable leftJoin AddressTable).selectAll().where { UserTable.uuid eq uuid }.firstOrNull() if(user == null) throw NullPointerException("User not found") val userResponse = UserResponse( userUuid = user[ProfileTable.uuid],