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(
|
||||||
StatusQuery(
|
timelines.map {
|
||||||
it.postId,
|
StatusQuery(
|
||||||
it.replyId,
|
it.postId,
|
||||||
it.repostId,
|
it.replyId,
|
||||||
it.mediaIds
|
it.repostId,
|
||||||
)
|
it.mediaIds
|
||||||
})
|
)
|
||||||
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue