summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/schema/rfqLast.ts1
-rw-r--r--lib/soap/ecc/mapper/rfq-and-pr-mapper.ts2
2 files changed, 1 insertions, 2 deletions
diff --git a/db/schema/rfqLast.ts b/db/schema/rfqLast.ts
index 10ec888a..2f2a6710 100644
--- a/db/schema/rfqLast.ts
+++ b/db/schema/rfqLast.ts
@@ -74,7 +74,6 @@ export const rfqsLast = pgTable(
.references(() => users.id, { onDelete: "set null" }),
updatedBy: integer("updated_by")
- .notNull()
.references(() => users.id, { onDelete: "set null" }),
createdAt: timestamp("created_at").defaultNow().notNull(),
diff --git a/lib/soap/ecc/mapper/rfq-and-pr-mapper.ts b/lib/soap/ecc/mapper/rfq-and-pr-mapper.ts
index c1c56cf3..65b49423 100644
--- a/lib/soap/ecc/mapper/rfq-and-pr-mapper.ts
+++ b/lib/soap/ecc/mapper/rfq-and-pr-mapper.ts
@@ -223,7 +223,7 @@ export async function mapECCRfqHeaderToRfqLast(
picName: inChargeUserName, // 담당자명 (EKGRP로 조회)
sentBy: null,
createdBy: inChargeUserId || 1,
- updatedBy: inChargeUserId || 1,
+ updatedBy: inChargeUserId,
createdAt: interfacedAt,
// 새 필드들
rfqType: 'ECC', // ECC에서 온 데이터임을 표시