From 0d8a21a3b01fbe4120ad1695932b23b163865aac Mon Sep 17 00:00:00 2001 From: eshc123 <> Date: Fri, 20 Dec 2024 21:12:22 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=AF=B8=EC=85=98=20=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=20API=20=ED=98=B8=EC=B6=9C=20=EC=8B=9C=20=EB=8F=99?= =?UTF-8?q?=EC=8B=9C=20=ED=98=B8=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../feature/board/screen/BoardViewModel.kt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/feature/board/src/main/java/com/goalpanzi/mission_mate/feature/board/screen/BoardViewModel.kt b/feature/board/src/main/java/com/goalpanzi/mission_mate/feature/board/screen/BoardViewModel.kt index 3c08007..a010414 100644 --- a/feature/board/src/main/java/com/goalpanzi/mission_mate/feature/board/screen/BoardViewModel.kt +++ b/feature/board/src/main/java/com/goalpanzi/mission_mate/feature/board/screen/BoardViewModel.kt @@ -132,9 +132,11 @@ class BoardViewModel @Inject constructor( fun fetchMissionData() { viewModelScope.launch { - getMissionBoards() - getMission() - getMissionVerification() + joinAll( + launch { getMission() }, + launch { getMissionVerification() }, + launch { getMissionBoards() } + ) } } @@ -142,9 +144,9 @@ class BoardViewModel @Inject constructor( viewModelScope.launch { _isRefreshLoading.emit(true) joinAll( - launch { getMissionBoards() }, launch { getMission() }, - launch { getMissionVerification() } + launch { getMissionVerification() }, + launch { getMissionBoards() } ) _isRefreshLoading.emit(false) }