260218:1712 20260218 TASK-BEFE-001n
Build and Deploy / deploy (push) Successful in 4m55s

This commit is contained in:
admin
2026-02-18 17:12:11 +07:00
parent 01ce68acda
commit b84284f8a9
54 changed files with 1307 additions and 339 deletions
@@ -102,7 +102,8 @@ export class AsBuiltDrawingService {
// 5. Commit Files
if (createDto.attachmentIds?.length) {
await this.fileStorageService.commit(
createDto.attachmentIds.map(String)
createDto.attachmentIds.map(String),
{ issueDate: revision.revisionDate, documentType: 'AsBuiltDrawing' }
);
}
@@ -188,7 +189,8 @@ export class AsBuiltDrawingService {
if (createDto.attachmentIds?.length) {
await this.fileStorageService.commit(
createDto.attachmentIds.map(String)
createDto.attachmentIds.map(String),
{ issueDate: revision.revisionDate, documentType: 'AsBuiltDrawing' }
);
}
@@ -85,7 +85,8 @@ export class ContractDrawingService {
if (createDto.attachmentIds?.length) {
// ✅ FIX TS2345: แปลง number[] เป็น string[] ก่อนส่ง
await this.fileStorageService.commit(
createDto.attachmentIds.map(String)
createDto.attachmentIds.map(String),
{ documentType: 'ContractDrawing' }
);
}
@@ -213,7 +214,8 @@ export class ContractDrawingService {
// Commit new files
// ✅ FIX TS2345: แปลง number[] เป็น string[] ก่อนส่ง
await this.fileStorageService.commit(
updateDto.attachmentIds.map(String)
updateDto.attachmentIds.map(String),
{ documentType: 'ContractDrawing' }
);
}
@@ -101,7 +101,8 @@ export class ShopDrawingService {
// 5. Commit Files
if (createDto.attachmentIds?.length) {
await this.fileStorageService.commit(
createDto.attachmentIds.map(String)
createDto.attachmentIds.map(String),
{ issueDate: revision.revisionDate, documentType: 'ShopDrawing' }
);
}
@@ -188,7 +189,8 @@ export class ShopDrawingService {
if (createDto.attachmentIds?.length) {
await this.fileStorageService.commit(
createDto.attachmentIds.map(String)
createDto.attachmentIds.map(String),
{ issueDate: revision.revisionDate, documentType: 'ShopDrawing' }
);
}