mirror of https://github.com/usbharu/Hideout.git
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
14149001c9
commit
a0b434b023
|
@ -25,7 +25,6 @@ data class Actor private constructor(
|
|||
val locked: Boolean
|
||||
) {
|
||||
|
||||
|
||||
@Component
|
||||
class UserBuilder(private val characterLimit: CharacterLimit, private val applicationConfig: ApplicationConfig) {
|
||||
|
||||
|
@ -165,6 +164,4 @@ data class Actor private constructor(
|
|||
"locked=$locked" +
|
||||
")"
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -45,10 +45,8 @@ class UserDetailRepositoryImpl : UserDetailRepository {
|
|||
)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
object UserDetails : LongIdTable("user_details") {
|
||||
val actorId = long("actor_id").references(Actors.id)
|
||||
val password = varchar("password", 255)
|
||||
|
|
|
@ -172,7 +172,6 @@ class AccountApiServiceImpl(
|
|||
|
||||
override suspend fun updateProfile(userid: Long, updateCredentials: UpdateCredentials?): Account =
|
||||
transaction.transaction {
|
||||
|
||||
val avatarMedia = if (updateCredentials?.avatar != null) {
|
||||
mediaService.uploadLocalMedia(
|
||||
MediaRequest(
|
||||
|
@ -199,7 +198,6 @@ class AccountApiServiceImpl(
|
|||
null
|
||||
}
|
||||
|
||||
|
||||
val account = accountService.findById(userid)
|
||||
|
||||
val updateUserDto = UpdateUserDto(
|
||||
|
|
Loading…
Reference in New Issue