Skip to content

Commit

Permalink
#180 / 커플 연결 시 로컬에 couple ID 저장
Browse files Browse the repository at this point in the history
  • Loading branch information
haeti-dev committed Dec 20, 2023
1 parent d80b4e1 commit 56eb692
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.launch
import sopt.uni.data.datasource.local.SparkleStorage
import sopt.uni.data.repository.onboarding.OnBoardingRepository
import timber.log.Timber
import javax.inject.Inject
Expand All @@ -26,6 +27,7 @@ class DdayViewModel @Inject constructor(
it.body()?.let { response ->
Timber.d("기념일 갱신이 성공했습니다.")
_inviteCode.value = response.inviteCode
SparkleStorage.coupleId = response.coupleId
} ?: run {
Timber.d("기념일 갱신에서 null이 반환되었습니다.")
}
Expand Down

0 comments on commit 56eb692

Please sign in to comment.