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
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.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.helpers.responseCreated
import id.co.sangkuriang.inovasi.daerah.master.helpers.responseNotFound
......@@ -144,7 +144,7 @@ class ApplicationCategoryServiceImpl : ApplicationCategoryService {
val checkName = repo.findByName(request.name)
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) {
listMessage.add(msgCheckName)
} 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