mirror of https://github.com/usbharu/Hideout.git
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:
parent
f38523d969
commit
046ca2c155
|
@ -51,13 +51,15 @@ class MongoGenerateTimelineService(
|
||||||
|
|
||||||
val timelines = mongoTemplate.find(query, Timeline::class.java)
|
val timelines = mongoTemplate.find(query, Timeline::class.java)
|
||||||
|
|
||||||
return statusQueryService.findByPostIdsWithMediaIds(timelines.map {
|
return statusQueryService.findByPostIdsWithMediaIds(
|
||||||
|
timelines.map {
|
||||||
StatusQuery(
|
StatusQuery(
|
||||||
it.postId,
|
it.postId,
|
||||||
it.replyId,
|
it.replyId,
|
||||||
it.repostId,
|
it.repostId,
|
||||||
it.mediaIds
|
it.mediaIds
|
||||||
)
|
)
|
||||||
})
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue