테이블 변경 이력 로그에 ip_address와 변경자 컬럼 기록 추가

This commit is contained in:
dohyeons
2025-10-21 15:25:05 +09:00
parent 7fe246bd93
commit 656f1c2ebd
2 changed files with 25 additions and 4 deletions

View File

@@ -36,10 +36,18 @@ export const saveFormData = async (
formDataWithMeta.company_code = companyCode;
}
// 클라이언트 IP 주소 추출
const ipAddress =
req.ip ||
(req.headers["x-forwarded-for"] as string) ||
req.socket.remoteAddress ||
"unknown";
const result = await dynamicFormService.saveFormData(
screenId,
tableName,
formDataWithMeta
formDataWithMeta,
ipAddress
);
res.json({