Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
usbharu 2023-12-12 17:11:55 +09:00 committed by GitHub
parent 14149001c9
commit a0b434b023
4 changed files with 32 additions and 39 deletions

View File

@ -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" +
")"
}
}

View File

@ -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)

View File

@ -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(