690519:2118 224 to 226 AI #03
CI / CD Pipeline / build (push) Failing after 4m8s
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
2026-05-19 21:18:48 +07:00
parent 7259cbf67a
commit a0b9b55130
7 changed files with 113 additions and 99 deletions
@@ -58,7 +58,7 @@ describe('AI Tool Services (RFA, Drawing, Transmittal)', () => {
statusCode: 'APPROVED',
},
items: [{}, {}],
respondedAt: new Date('2026-01-02T00:00:00Z'),
approvedDate: new Date('2026-01-02T00:00:00Z'),
},
},
],
@@ -52,13 +52,9 @@ export class DrawingToolService {
};
}
try {
// แปลง projectPublicId → internal project id (ADR-019)
const internalProjectId = await this.uuidResolver.resolveProjectId(
context.projectPublicId
);
// ดึงข้อมูล Shop Drawing
// ดึงข้อมูล Shop Drawing (ใช้ projectUuid ตาม ADR-019)
const result = await this.shopDrawingService.findAll({
projectId: internalProjectId,
projectUuid: context.projectPublicId,
page: 1,
limit: 20,
});
@@ -71,9 +71,9 @@ export class RfaToolService {
submittedAt: currentRevision?.issuedDate
? currentRevision.issuedDate.toISOString()
: null,
respondedAt: rfaRevision?.respondedAt
respondedAt: rfaRevision?.approvedDate
? new Date(
rfaRevision.respondedAt as string | number | Date
rfaRevision.approvedDate as string | number | Date
).toISOString()
: null,
contractPublicId: '', // Contract publicId — ถ้า contract entity มี publicId ให้เพิ่มทีหลัง