style: スタイルを修正

This commit is contained in:
usbharu 2023-08-18 11:05:08 +09:00
parent b07a0ffabb
commit 1a30407d83
3 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,7 @@ data class CharacterLimit(
val privateKey: Int
) {
companion object {
@Suppress("FunctionMinLength")
fun of(url: Int? = null, domain: Int? = null, publicKey: Int? = null, privateKey: Int? = null): General {
return General(
url ?: 1000,

View File

@ -16,6 +16,7 @@ data class Post private constructor(
val apId: String = url
) {
companion object {
@Suppress("FunctionMinLength", "LongParameterList")
fun of(
id: Long,
userId: Long,

View File

@ -53,7 +53,7 @@ class ReactionQueryServiceImpl : ReactionQueryService {
return Reactions
.leftJoin(Users, onColumn = { Reactions.userId }, otherColumn = { id })
.select { Reactions.postId.eq(postId) }
.groupBy { _: ResultRow -> ReactionResponse("", true, "", listOf()) }
.groupBy { _: ResultRow -> ReactionResponse("", true, "", emptyList()) }
.map { entry: Map.Entry<ReactionResponse, List<ResultRow>> ->
entry.key.copy(accounts = entry.value.map { Account(it[Users.screenName], "", it[Users.url]) })
}