코드 활성/비활성화 해결

This commit is contained in:
dohyeons
2025-09-30 14:28:40 +09:00
parent 0b787b4c4c
commit 142f6a1a90
6 changed files with 80 additions and 39 deletions

View File

@@ -276,8 +276,11 @@ export class CommonCodeService {
updatedBy: string
) {
try {
// 디버깅: 받은 데이터 로그
logger.info(`코드 수정 데이터:`, { categoryCode, codeValue, data });
// codeValue가 undefined이거나 빈 문자열인지 확인
if (!codeValue || codeValue === 'undefined') {
throw new Error(`잘못된 코드 값입니다: ${codeValue}`);
}
const code = await prisma.code_info.update({
where: {
code_category_code_value: {