This commit is contained in:
KP9lK 2025-06-11 13:14:56 +03:00
parent e6629b550c
commit d07d80fbf7

View File

@ -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],