mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-26 06:51:09 +00:00
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
github-actions[bot]
parent
6268850a5b
commit
e11872aac5
-1
@@ -46,7 +46,6 @@ class ExposedTimelineRepository(private val idGenerateService: IdGenerateService
|
||||
it[isLocal] = timeline.isLocal
|
||||
it[isPureRepost] = timeline.isPureRepost
|
||||
it[mediaIds] = timeline.mediaIds.joinToString(",")
|
||||
|
||||
}
|
||||
}
|
||||
return timeline
|
||||
|
||||
+2
-2
@@ -19,8 +19,8 @@ class KJobJobQueueParentService() : JobQueueParentService {
|
||||
val kjob: KJob by lazy {
|
||||
kjob(ExposedKJob) {
|
||||
connectionDatabase = TransactionManager.defaultDatabase
|
||||
isWorker = false
|
||||
}.start()
|
||||
isWorker = false
|
||||
}.start()
|
||||
}
|
||||
|
||||
override fun init(jobDefines: List<Job>) = Unit
|
||||
|
||||
+2
-1
@@ -45,7 +45,8 @@ class ExposedGenerateTimelineService(private val statusQueryService: StatusQuery
|
||||
it[Timelines.postId],
|
||||
it[Timelines.replyId],
|
||||
it[Timelines.repostId],
|
||||
it[Timelines.mediaIds].split(",").mapNotNull { it.toLongOrNull() })
|
||||
it[Timelines.mediaIds].split(",").mapNotNull { it.toLongOrNull() }
|
||||
)
|
||||
}
|
||||
|
||||
return statusQueryService.findByPostIdsWithMediaIds(statusQueries)
|
||||
|
||||
Reference in New Issue
Block a user