diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-25 03:15:45 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-25 03:15:45 +0000 |
| commit | 450234437267cdd9cdf196d5d37657708062bef5 (patch) | |
| tree | 2ec0ef193a71e949ccda776e040cc02ceff88ce0 /lib/bidding/detail/service.ts | |
| parent | 146dd77da407438023d6fe6f18c0ebb8b6915765 (diff) | |
(최겸) 구매 기준정보, 로그인 용어, 입찰 내정가 산정 로직 수정
Diffstat (limited to 'lib/bidding/detail/service.ts')
| -rw-r--r-- | lib/bidding/detail/service.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/bidding/detail/service.ts b/lib/bidding/detail/service.ts index 645ebeac..404bc3cd 100644 --- a/lib/bidding/detail/service.ts +++ b/lib/bidding/detail/service.ts @@ -475,6 +475,7 @@ export async function calculateAndUpdateTargetPrice( biddingId: number ) { try { + // 입찰 정보 조회 const bidding = await getBiddingById(biddingId) if (!bidding) { @@ -512,17 +513,16 @@ export async function calculateAndUpdateTargetPrice( const updateResult = await updateTargetPrice(biddingId, targetPrice, criteria) if (updateResult.success) { - // 내정가 산정 후 입찰 상태를 set_target_price로 변경 (received_quotation 상태에서만) - await db - .update(biddings) - .set({ - status: 'set_target_price', - updatedAt: new Date() - }) - .where(and( - eq(biddings.id, biddingId), - eq(biddings.status, 'received_quotation') - )) + // // 내정가 산정 후 입찰 상태를 set_target_price로 변경 (received_quotation 상태에서만) + // await db + // .update(biddings) + // .set({ + // status: 'set_target_price', + // updatedAt: new Date() + // }) + // .where(and( + // eq(biddings.id, biddingId) + // )) // 캐시 무효화 revalidateTag(`bidding-${biddingId}`) |
