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-11-16 23:38:24 +09:00 committed by GitHub
parent 6268850a5b
commit e11872aac5
3 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,6 @@ class ExposedTimelineRepository(private val idGenerateService: IdGenerateService
it[isLocal] = timeline.isLocal it[isLocal] = timeline.isLocal
it[isPureRepost] = timeline.isPureRepost it[isPureRepost] = timeline.isPureRepost
it[mediaIds] = timeline.mediaIds.joinToString(",") it[mediaIds] = timeline.mediaIds.joinToString(",")
} }
} }
return timeline return timeline

View File

@ -19,8 +19,8 @@ class KJobJobQueueParentService() : JobQueueParentService {
val kjob: KJob by lazy { val kjob: KJob by lazy {
kjob(ExposedKJob) { kjob(ExposedKJob) {
connectionDatabase = TransactionManager.defaultDatabase connectionDatabase = TransactionManager.defaultDatabase
isWorker = false isWorker = false
}.start() }.start()
} }
override fun init(jobDefines: List<Job>) = Unit override fun init(jobDefines: List<Job>) = Unit

View File

@ -45,7 +45,8 @@ class ExposedGenerateTimelineService(private val statusQueryService: StatusQuery
it[Timelines.postId], it[Timelines.postId],
it[Timelines.replyId], it[Timelines.replyId],
it[Timelines.repostId], it[Timelines.repostId],
it[Timelines.mediaIds].split(",").mapNotNull { it.toLongOrNull() }) it[Timelines.mediaIds].split(",").mapNotNull { it.toLongOrNull() }
)
} }
return statusQueryService.findByPostIdsWithMediaIds(statusQueries) return statusQueryService.findByPostIdsWithMediaIds(statusQueries)