From 788eb678c45c6d3767cd2679c41ad5387ae6c3f0 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 30 Oct 2025 11:21:12 +0000 Subject: (최겸) 구매 PQ status별 로직처리(ㅌ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pq/service.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/pq/service.ts') diff --git a/lib/pq/service.ts b/lib/pq/service.ts index 0bc575a6..7cdbcafd 100644 --- a/lib/pq/service.ts +++ b/lib/pq/service.ts @@ -1933,6 +1933,7 @@ export async function getPQSubmissions(input: GetPQSubmissionsSchema) { completedAt: vendorInvestigations.completedAt, forecastedAt: vendorInvestigations.forecastedAt, evaluationScore: vendorInvestigations.evaluationScore, + hasSupplementRequested: vendorInvestigations.hasSupplementRequested, evaluationResult: vendorInvestigations.evaluationResult, investigationNotes: vendorInvestigations.investigationNotes, requesterId: vendorInvestigations.requesterId, @@ -3073,10 +3074,7 @@ export async function sendInvestigationResultsAction(input: { .leftJoin(projects, eq(vendorPQSubmissions.projectId, projects.id)) .leftJoin(users, eq(vendorInvestigations.requesterId, users.id)) .where( - and( - inArray(vendorInvestigations.id, input.investigationIds), - eq(vendorInvestigations.investigationStatus, "COMPLETED") - ) + inArray(vendorInvestigations.id, input.investigationIds) ) if (investigations.length === 0) { -- cgit v1.2.3