From edb3965c4860994a7bbaaf336222bdab351b7b49 Mon Sep 17 00:00:00 2001 From: usbharu Date: Mon, 23 Oct 2023 13:33:14 +0900 Subject: [PATCH] Update src/main/kotlin/dev/usbharu/hideout/service/post/MongoGenerateTimelineService.kt Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../post/MongoGenerateTimelineService.kt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/service/post/MongoGenerateTimelineService.kt b/src/main/kotlin/dev/usbharu/hideout/service/post/MongoGenerateTimelineService.kt index 5c67d854..1a75c9b0 100644 --- a/src/main/kotlin/dev/usbharu/hideout/service/post/MongoGenerateTimelineService.kt +++ b/src/main/kotlin/dev/usbharu/hideout/service/post/MongoGenerateTimelineService.kt @@ -51,13 +51,15 @@ class MongoGenerateTimelineService( val timelines = mongoTemplate.find(query, Timeline::class.java) - return statusQueryService.findByPostIdsWithMediaIds(timelines.map { - StatusQuery( - it.postId, - it.replyId, - it.repostId, - it.mediaIds - ) - }) + return statusQueryService.findByPostIdsWithMediaIds( + timelines.map { + StatusQuery( + it.postId, + it.replyId, + it.repostId, + it.mediaIds + ) + } + ) } }