Commit abb4ad3a authored by Ghitha Dinan's avatar Ghitha Dinan

token interceptor fixing

parent b4c3b10d
...@@ -2,7 +2,7 @@ package id.co.sangkuriang.inovasi.daerah.master.service.impl ...@@ -2,7 +2,7 @@ package id.co.sangkuriang.inovasi.daerah.master.service.impl
import id.co.sangkuriang.inovasi.daerah.master.constant.UPLOAD_ICON_APPLICATION_CATEGORY_DIR import id.co.sangkuriang.inovasi.daerah.master.constant.UPLOAD_ICON_APPLICATION_CATEGORY_DIR
import id.co.sangkuriang.inovasi.daerah.master.constant.UPLOAD_IMAGE_APPLICATION_CATEGORY_DIR import id.co.sangkuriang.inovasi.daerah.master.constant.UPLOAD_IMAGE_APPLICATION_CATEGORY_DIR
import id.co.sangkuriang.inovasi.daerah.master.constant.VALIDATOR_MSG_NOT_FOUND import id.co.sangkuriang.inovasi.daerah.master.constant.VALIDATOR_MSG_HAS_USED
import id.co.sangkuriang.inovasi.daerah.master.exception.BadRequestException import id.co.sangkuriang.inovasi.daerah.master.exception.BadRequestException
import id.co.sangkuriang.inovasi.daerah.master.helpers.responseCreated import id.co.sangkuriang.inovasi.daerah.master.helpers.responseCreated
import id.co.sangkuriang.inovasi.daerah.master.helpers.responseNotFound import id.co.sangkuriang.inovasi.daerah.master.helpers.responseNotFound
...@@ -144,7 +144,7 @@ class ApplicationCategoryServiceImpl : ApplicationCategoryService { ...@@ -144,7 +144,7 @@ class ApplicationCategoryServiceImpl : ApplicationCategoryService {
val checkName = repo.findByName(request.name) val checkName = repo.findByName(request.name)
if (checkName.isPresent) { if (checkName.isPresent) {
val msgCheckName = mapOf("name" to "Nama ${request.name} $VALIDATOR_MSG_NOT_FOUND") val msgCheckName = mapOf("name" to "Nama ${request.name} $VALIDATOR_MSG_HAS_USED")
if (id == null) { if (id == null) {
listMessage.add(msgCheckName) listMessage.add(msgCheckName)
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment