summaryrefslogtreecommitdiff
path: root/lib/vendor-users
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vendor-users')
-rw-r--r--lib/vendor-users/service.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vendor-users/service.ts b/lib/vendor-users/service.ts
index 428e8b73..c6d07d3f 100644
--- a/lib/vendor-users/service.ts
+++ b/lib/vendor-users/service.ts
@@ -242,7 +242,7 @@ export async function getUserCountGroupByRoleAndVendor() {
/**
* 단건 업데이트
*/
-export async function modifiVendorUser(input: UpdateVendorUserSchema & { id: number } & { language?: string }) {
+export async function modifiVendorUser(input: UpdateVendorUserSchema & { id: number } & { language?: string; phone?: string }) {
unstable_noStore();
try {
@@ -271,6 +271,7 @@ export async function modifiVendorUser(input: UpdateVendorUserSchema & { id: num
const [res] = await updateUser(tx, input.id, {
name: input.name,
email: input.email,
+ phone: input.phone, // 전화번호 필드 추가
});
// 2) roles 업데이트 (같은 회사 내에서만)