From 1dc24d48e52f2e490f5603ceb02842586ecae533 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 24 Jul 2025 11:06:32 +0000 Subject: (대표님) 정기평가 피드백 반영, 설계 피드백 반영, (최겸) 기술영업 피드백 반영 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tech-vendors/service.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'lib/tech-vendors') diff --git a/lib/tech-vendors/service.ts b/lib/tech-vendors/service.ts index a5881083..65e23d14 100644 --- a/lib/tech-vendors/service.ts +++ b/lib/tech-vendors/service.ts @@ -2,7 +2,7 @@ import { revalidateTag, unstable_noStore } from "next/cache"; import db from "@/db/db"; -import { techVendorAttachments, techVendorContacts, techVendorPossibleItems, techVendors, techVendorItemsView, type TechVendor, techVendorCandidates } from "@/db/schema/techVendors"; +import { techVendorAttachments, techVendorContacts, techVendorPossibleItems, techVendors, techVendorItemsView, type TechVendor } from "@/db/schema/techVendors"; import { items, itemShipbuilding, itemOffshoreTop, itemOffshoreHull } from "@/db/schema/items"; import { users } from "@/db/schema/users"; import ExcelJS from "exceljs"; @@ -1878,22 +1878,12 @@ export async function createTechVendorFromSignup(params: { userId = existingUser.id; } - // 6. 후보에서 해당 이메일이 있으면 vendorId 업데이트 및 상태 변경 - if (params.vendorData.email) { - await tx.update(techVendorCandidates) - .set({ - vendorId: vendorResult.id, - status: "INVITED" - }) - .where(eq(techVendorCandidates.contactEmail, params.vendorData.email)); - } - return { vendor: vendorResult, userId }; }); // 캐시 무효화 revalidateTag("tech-vendors"); - revalidateTag("tech-vendor-candidates"); + revalidateTag("tech-vendor-possible-items"); revalidateTag("users"); console.log("기술영업 벤더 회원가입 완료:", result); -- cgit v1.2.3