hot fix
This commit is contained in:
parent
e6629b550c
commit
d07d80fbf7
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user