From 373def6298ba42da15f94dbaa2b9642eee6e4920 Mon Sep 17 00:00:00 2001 From: Jo Kyung Hyeon Date: Fri, 13 Jan 2023 23:11:00 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20(#286)=20toDomain=20=EA=B0=84?= =?UTF-8?q?=ED=8E=B8=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../persistence/user/mapper/UserMapper.kt | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/simtong-infrastructure/src/main/kotlin/team/comit/simtong/persistence/user/mapper/UserMapper.kt b/simtong-infrastructure/src/main/kotlin/team/comit/simtong/persistence/user/mapper/UserMapper.kt index f6c9ff3f..c26199cd 100644 --- a/simtong-infrastructure/src/main/kotlin/team/comit/simtong/persistence/user/mapper/UserMapper.kt +++ b/simtong-infrastructure/src/main/kotlin/team/comit/simtong/persistence/user/mapper/UserMapper.kt @@ -43,21 +43,7 @@ class UserMapper( } override fun toDomain(entity: UserJpaEntity?): User? { - return entity?.let { - User.of( - id = it.id!!, - nickname = it.nickname, - name = it.name, - email = it.email, - password = it.password, - employeeNumber = it.employeeNumber, - authority = it.authority, - spotId = it.spot.id!!, - teamId = it.team.id!!, - profileImagePath = it.profileImagePath, - deletedAt = it.deletedAt - ) - } + return entity?.let(::toDomainNotNull) } override fun toDomainNotNull(entity: UserJpaEntity): User {