Skip to content

Commit

Permalink
#180 / 바뀐 반환 값 이용해서 초대코드 가져오기
Browse files Browse the repository at this point in the history
  • Loading branch information
haeti-dev committed Dec 20, 2023
1 parent aee21c3 commit d80b4e1
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ class DdayViewModel @Inject constructor(
kotlin.runCatching {
onBoardingRepository.postStartDate(startDate = startDate)
}.fold({
_inviteCode.emit(it)
Timber.d("기념일 갱신이 완료되었습니다.")
it.body()?.let { response ->
Timber.d("기념일 갱신이 성공했습니다.")
_inviteCode.value = response.inviteCode
} ?: run {
Timber.d("기념일 갱신에서 null이 반환되었습니다.")
}
}, {
Timber.d("기념일 갱신이 실패했습니다.")
})
Expand Down

0 comments on commit d80b4e1

Please sign in to comment.