mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-22 04:38:35 +00:00
style: スタイルを修正
This commit is contained in:
@@ -21,6 +21,6 @@ class MdcXrequestIdFilter : Filter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
val KEY = "x-request-id"
|
private const val KEY = "x-request-id"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class PostServiceImpl(
|
|||||||
private suspend fun internalCreate(post: Post, isLocal: Boolean): Post {
|
private suspend fun internalCreate(post: Post, isLocal: Boolean): Post {
|
||||||
val save = try {
|
val save = try {
|
||||||
postRepository.save(post)
|
postRepository.save(post)
|
||||||
} catch (e: ExposedSQLException) {
|
} catch (_: ExposedSQLException) {
|
||||||
postQueryService.findByApId(post.apId)
|
postQueryService.findByApId(post.apId)
|
||||||
}
|
}
|
||||||
timelineService.publishTimeline(save, isLocal)
|
timelineService.publishTimeline(save, isLocal)
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class UserServiceImpl(
|
|||||||
)
|
)
|
||||||
return try {
|
return try {
|
||||||
userRepository.save(userEntity)
|
userRepository.save(userEntity)
|
||||||
} catch (e: ExposedSQLException) {
|
} catch (_: ExposedSQLException) {
|
||||||
userQueryService.findByUrl(user.url)
|
userQueryService.findByUrl(user.url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user