From af0bcb5b6148a9b3972318e896cd6d16ab78cced Mon Sep 17 00:00:00 2001 From: ki960213 Date: Thu, 30 Nov 2023 14:14:43 +0900 Subject: [PATCH] =?UTF-8?q?refactor(DefaultRecruitmentRepository):=20Defau?= =?UTF-8?q?ltRecruitmentRepository=EC=97=90=EC=84=9C=20=EB=B6=88=ED=95=84?= =?UTF-8?q?=EC=9A=94=ED=95=9C=20=EC=BD=94=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 특정 회원이 작성한 함께해요 글 조회 메서드에서 withContext 제거 --- .../repository/concretes/DefaultRecruitmentRepository.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/android/2023-emmsale/app/src/main/java/com/emmsale/data/repository/concretes/DefaultRecruitmentRepository.kt b/android/2023-emmsale/app/src/main/java/com/emmsale/data/repository/concretes/DefaultRecruitmentRepository.kt index de0160868..c89466b66 100644 --- a/android/2023-emmsale/app/src/main/java/com/emmsale/data/repository/concretes/DefaultRecruitmentRepository.kt +++ b/android/2023-emmsale/app/src/main/java/com/emmsale/data/repository/concretes/DefaultRecruitmentRepository.kt @@ -41,10 +41,9 @@ class DefaultRecruitmentRepository @Inject constructor( override suspend fun getMemberRecruitments( memberId: Long, - ): ApiResponse> = withContext(Dispatchers.IO) { - recruitmentService.getMemberRecruitments(memberId) - .map { it.toData() } - } + ): ApiResponse> = recruitmentService + .getMemberRecruitments(memberId) + .map { it.toData() } override suspend fun postRecruitment( eventId: Long,