From addd278cd4ca97c0fd34e0120d6eec5dc5f4415f Mon Sep 17 00:00:00 2001 From: JuHyun419 Date: Sun, 18 Sep 2022 15:52:52 +0900 Subject: [PATCH] =?UTF-8?q?[#140]=20refactor:=20=ED=9A=8C=EC=9B=90?= =?UTF-8?q?=EA=B0=80=EC=9E=85=20=EC=95=8C=EB=A6=BC=20=EB=AC=B8=EA=B5=AC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EB=B0=8F=20=EB=A6=AC=EB=A7=88=EC=9D=B8?= =?UTF-8?q?=EB=93=9C=20=EC=A3=BC=EA=B8=B0=20=EC=84=A4=EC=A0=95=20API=20sav?= =?UTF-8?q?e=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yapp/web2/domain/account/service/AccountService.kt | 6 ++++-- .../com/yapp/web2/domain/remind/service/RemindService.kt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/yapp/web2/domain/account/service/AccountService.kt b/src/main/kotlin/com/yapp/web2/domain/account/service/AccountService.kt index a8dc559..d0b752c 100644 --- a/src/main/kotlin/com/yapp/web2/domain/account/service/AccountService.kt +++ b/src/main/kotlin/com/yapp/web2/domain/account/service/AccountService.kt @@ -81,7 +81,8 @@ class AccountService( folderService.createDefaultFolder(account) val userCountMessage = """ - ${newAccount.id}: ${newAccount.name} 님이 회원가입을 진행하였습니다. 현재 회원 수: *`${accountRepository.count()}`* + *`${newAccount.name}`* 님이 회원가입을 진행하였습니다. + 현재까지 총 회원 수는 *`${accountRepository.count()}`* 명 입니다. """.trimIndent() slackApi.sendSlackAlarmToVerbose(userCountMessage) @@ -112,7 +113,8 @@ class AccountService( log.info("${newAccount.email} account signUp succeed") val userCountMessage = """ - ${newAccount.id}: ${newAccount.name} 님이 회원가입을 진행하였습니다. 현재 회원 수: *`${accountRepository.count()}`* + *`${newAccount.name}`* 님이 회원가입을 진행하였습니다. + 현재까지 총 회원 수는 *`${accountRepository.count()}`* 명 입니다. """.trimIndent() slackApi.sendSlackAlarmToVerbose(userCountMessage) diff --git a/src/main/kotlin/com/yapp/web2/domain/remind/service/RemindService.kt b/src/main/kotlin/com/yapp/web2/domain/remind/service/RemindService.kt index a46a85d..561aefc 100644 --- a/src/main/kotlin/com/yapp/web2/domain/remind/service/RemindService.kt +++ b/src/main/kotlin/com/yapp/web2/domain/remind/service/RemindService.kt @@ -117,6 +117,7 @@ class RemindService( val userId = jwtProvider.getIdFromToken(accessToken) accountRepository.findByIdOrNull(userId)?.let { it.remindCycle = request.remindCycle + accountRepository.save(it) } }