From a45f1389fd4450217041e9c3f6771ad1494e908b Mon Sep 17 00:00:00 2001 From: kwakjoohyeong Date: Wed, 3 Apr 2024 20:09:43 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85=20?= =?UTF-8?q?=EC=84=B1=EA=B3=B5=EC=8B=9C=20=EA=B6=8C=ED=95=9C=20=EC=97=85?= =?UTF-8?q?=EA=B7=B8=EB=A0=88=EC=9D=B4=EB=93=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../withpeace/core/data/repository/DefaultUserRepository.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/data/src/main/kotlin/com/withpeace/withpeace/core/data/repository/DefaultUserRepository.kt b/core/data/src/main/kotlin/com/withpeace/withpeace/core/data/repository/DefaultUserRepository.kt index 7feb0b4e..9bc2e5ff 100644 --- a/core/data/src/main/kotlin/com/withpeace/withpeace/core/data/repository/DefaultUserRepository.kt +++ b/core/data/src/main/kotlin/com/withpeace/withpeace/core/data/repository/DefaultUserRepository.kt @@ -15,6 +15,7 @@ import com.withpeace.withpeace.core.domain.model.WithPeaceError import com.withpeace.withpeace.core.domain.model.profile.ChangedProfile import com.withpeace.withpeace.core.domain.model.profile.Nickname import com.withpeace.withpeace.core.domain.model.profile.ProfileInfo +import com.withpeace.withpeace.core.domain.model.role.Role import com.withpeace.withpeace.core.domain.repository.UserRepository import com.withpeace.withpeace.core.network.di.common.getErrorBody import com.withpeace.withpeace.core.network.di.request.NicknameRequest @@ -70,6 +71,7 @@ class DefaultUserRepository @Inject constructor( request.suspendMapSuccess { val data = this.data + userPreferenceDataSource.updateUserRole(Role.USER.name) tokenPreferenceDataSource.updateAccessToken(data.accessToken) tokenPreferenceDataSource.updateRefreshToken(data.refreshToken) emit(Unit)