Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat : Profile Image URL 앞에 "/" 처리 #177

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
)