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
6268850a5b
commit
e11872aac5
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue