mirror of https://github.com/usbharu/Hideout.git
Merge pull request #252 from usbharu/bugfix/issue-216
perf: Updateが多発する問題の一時的な修正
This commit is contained in:
commit
128e536330
|
@ -83,7 +83,7 @@ class PostServiceImpl(
|
||||||
return try {
|
return try {
|
||||||
val save = postRepository.save(post)
|
val save = postRepository.save(post)
|
||||||
timelineService.publishTimeline(post, isLocal)
|
timelineService.publishTimeline(post, isLocal)
|
||||||
actorRepository.save(actor.incrementPostsCount())
|
// actorRepository.save(actor.incrementPostsCount())
|
||||||
save
|
save
|
||||||
} catch (_: DuplicateException) {
|
} catch (_: DuplicateException) {
|
||||||
postRepository.findByApId(post.apId) ?: throw PostNotFoundException.withApId(post.apId)
|
postRepository.findByApId(post.apId) ?: throw PostNotFoundException.withApId(post.apId)
|
||||||
|
|
Loading…
Reference in New Issue