Skip to content

Commit

Permalink
bug fix. getCurrentUserInformationUseCase return nothings [FoKE-Devel…
Browse files Browse the repository at this point in the history
…opers#85]

- getCurrentUserInformationUseCase가 path를 return하지 않았던 버그를 수정
  • Loading branch information
DokySp committed Oct 11, 2024
1 parent 620ecd0 commit 9855535
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class GetDownloadUrlUseCase @Inject constructor(
suspend operator fun invoke(key: String): Result<String> {
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"))
}
Expand Down

0 comments on commit 9855535

Please sign in to comment.