diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-12-08 08:45:20 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-12-08 08:45:20 +0000 |
| commit | 8a19a6fa336768d8b6712752c9d713360067ecb0 (patch) | |
| tree | 88b9a917663c1a4d94a91c733b91ec193b133af3 /lib/compliance/services.ts | |
| parent | d146ca408bea203f44118db180f3c4c06a8d2d21 (diff) | |
(최겸) 구매 피드백 수정, 안전담당자, pq항목 내 첨부, 내외자 구분, 도로명주소 api 반영(운영기준)
Diffstat (limited to 'lib/compliance/services.ts')
| -rw-r--r-- | lib/compliance/services.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/compliance/services.ts b/lib/compliance/services.ts index 2856cb0a..03c19952 100644 --- a/lib/compliance/services.ts +++ b/lib/compliance/services.ts @@ -1148,6 +1148,7 @@ export async function getRedFlagManagers() { with: { purchasingManager: true, complianceManager: true, + hseManager: true, }, orderBy: [desc(redFlagManagers.createdAt)], }); @@ -1163,6 +1164,7 @@ export async function getRedFlagManagers() { export async function createRedFlagManagers(data: { purchasingManagerId: number | null; complianceManagerId: number | null; + hseManagerId: number | null; }) { try { const [newManager] = await db @@ -1170,6 +1172,7 @@ export async function createRedFlagManagers(data: { .values({ purchasingManagerId: data.purchasingManagerId, complianceManagerId: data.complianceManagerId, + hseManagerId: data.hseManagerId, }) .returning(); @@ -1187,6 +1190,7 @@ export async function updateRedFlagManagers( data: { purchasingManagerId?: number | null; complianceManagerId?: number | null; + hseManagerId?: number | null; } ) { try { @@ -1220,6 +1224,7 @@ export async function getOrCreateRedFlagManagers() { await createRedFlagManagers({ purchasingManagerId: null, complianceManagerId: null, + hseManagerId: null, }); // 다시 relations를 포함해서 조회 |
