Merge branch 'dev' of http://39.117.244.52:3000/kjs/ERP-node into feature/screen-management
This commit is contained in:
@@ -282,15 +282,13 @@ export async function getTableLabels(
|
||||
const tableLabels = await tableManagementService.getTableLabels(tableName);
|
||||
|
||||
if (!tableLabels) {
|
||||
const response: ApiResponse<null> = {
|
||||
success: false,
|
||||
message: "테이블 라벨 정보를 찾을 수 없습니다.",
|
||||
error: {
|
||||
code: "TABLE_LABELS_NOT_FOUND",
|
||||
details: `테이블 ${tableName}의 라벨 정보가 존재하지 않습니다.`,
|
||||
},
|
||||
// 라벨이 없으면 빈 객체를 성공으로 반환 (404 에러 대신)
|
||||
const response: ApiResponse<{}> = {
|
||||
success: true,
|
||||
message: "테이블 라벨 정보를 조회했습니다.",
|
||||
data: {},
|
||||
};
|
||||
res.status(404).json(response);
|
||||
res.status(200).json(response);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -350,15 +348,13 @@ export async function getColumnLabels(
|
||||
);
|
||||
|
||||
if (!columnLabels) {
|
||||
const response: ApiResponse<null> = {
|
||||
success: false,
|
||||
message: "컬럼 라벨 정보를 찾을 수 없습니다.",
|
||||
error: {
|
||||
code: "COLUMN_LABELS_NOT_FOUND",
|
||||
details: `컬럼 ${tableName}.${columnName}의 라벨 정보가 존재하지 않습니다.`,
|
||||
},
|
||||
// 라벨이 없으면 빈 객체를 성공으로 반환 (404 에러 대신)
|
||||
const response: ApiResponse<{}> = {
|
||||
success: true,
|
||||
message: "컬럼 라벨 정보를 조회했습니다.",
|
||||
data: {},
|
||||
};
|
||||
res.status(404).json(response);
|
||||
res.status(200).json(response);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user