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>
This commit is contained in:
usbharu 2023-10-23 13:33:14 +09:00 committed by GitHub
parent f38523d969
commit 046ca2c155
1 changed files with 10 additions and 8 deletions

View File

@ -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
)
}
)
}
}