summaryrefslogtreecommitdiff
path: root/lib/vendors/service.ts
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-08-26 01:17:56 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-08-26 01:17:56 +0000
commit12e936c0b45ffa1c8f3c02ff77961212767be9a7 (patch)
tree34f31b9a64c6d30e187c1114530c4d47b95d30a9 /lib/vendors/service.ts
parent83f67ed333f0237b434a41d1eceef417c0d48313 (diff)
(대표님) 가입, 기본계약, 벤더
(최겸) 기술영업 아이템 관련
Diffstat (limited to 'lib/vendors/service.ts')
-rw-r--r--lib/vendors/service.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/vendors/service.ts b/lib/vendors/service.ts
index 4cca3b12..e3a38891 100644
--- a/lib/vendors/service.ts
+++ b/lib/vendors/service.ts
@@ -1576,7 +1576,7 @@ export async function approveVendors(input: ApproveVendorsInput & { userId: numb
// 기존 사용자-역할 관계 확인
const existingUserRole = await tx
- .select({ id: userRoles.id })
+ .select({ userId: userRoles.userId })
.from(userRoles)
.where(
and(
@@ -1621,7 +1621,10 @@ export async function approveVendors(input: ApproveVendorsInput & { userId: numb
try {
// 사용자 언어 확인
const userInfo = await tx
- .select({ language: users.language })
+ .select({
+ id: users.id,
+ language: users.language
+ })
.from(users)
.where(eq(users.email, vendor.email))
.limit(1);