From 91b4772b4092efb72f07c0ba8dbe395afd1ab8c9 Mon Sep 17 00:00:00 2001 From: Tony Dokyoon Kim Date: Sat, 12 Oct 2024 06:47:47 +0900 Subject: [PATCH] bug fix. getCurrentUserInformationUseCase return nothings [#85] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - getCurrentUserInformationUseCase가 path를 return하지 않았던 버그를 수정 --- .../together/domain/interactor/web/GetDownloadUrlUseCase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/src/main/java/com/foke/together/domain/interactor/web/GetDownloadUrlUseCase.kt b/domain/src/main/java/com/foke/together/domain/interactor/web/GetDownloadUrlUseCase.kt index 52d73a6..b43edba 100644 --- a/domain/src/main/java/com/foke/together/domain/interactor/web/GetDownloadUrlUseCase.kt +++ b/domain/src/main/java/com/foke/together/domain/interactor/web/GetDownloadUrlUseCase.kt @@ -11,7 +11,7 @@ class GetDownloadUrlUseCase @Inject constructor( suspend operator fun invoke(key: String): Result { getCurrentUserInformationUseCase() .onSuccess { - "${AppPolicy.WEB_SERVER_URL}download/${it.name}/$key" + return Result.success("${AppPolicy.WEB_SERVER_URL}download/${it.name}/$key.jpg") // TODO: remove `.jpg` later } return Result.failure(Exception("Unknown error")) }