Merge pull request #252 from usbharu/bugfix/issue-216

perf: Updateが多発する問題の一時的な修正
This commit is contained in:
usbharu 2024-01-25 22:52:52 +09:00 committed by GitHub
commit 128e536330
1 changed files with 1 additions and 1 deletions

View File

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