Skip to content

Commit

Permalink
Merge pull request #177 from SWM-KAWAI-MANS/feat/slash
Browse files Browse the repository at this point in the history
feat : Profile Image URL 앞에 "/" 처리
  • Loading branch information
nohjunh authored Sep 18, 2023
2 parents 8e28da3 + 954180a commit 2b9b001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package online.partyrun.partyrunapplication.core.network.model.response

import com.google.gson.annotations.SerializedName
import online.partyrun.partyrunapplication.core.common.Constants.S3_URL
import online.partyrun.partyrunapplication.core.model.match.RunnerInfo

data class BattleMemberResponse(
Expand All @@ -15,5 +16,5 @@ data class BattleMemberResponse(
fun BattleMemberResponse.toDomainModel() = RunnerInfo(
id = this.id,
name = this.name,
profile = this.profile
profile = S3_URL.plus("/" + this.profile)
)
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ data class UserResponse(
fun UserResponse.toDomainModel() = User(
id = this.userId ?: "",
nickName = this.nickName ?: "",
profileImage = S3_URL.plus(this.profileImage)
profileImage = S3_URL.plus("/" + this.profileImage)
)

0 comments on commit 2b9b001

Please sign in to comment.