diff options
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}`) |
