코드 활성/비활성화 해결
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user