This commit is contained in:
@@ -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' }
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user