Compare commits

..

2 Commits

Author SHA1 Message Date
admin 3f78f0ec00 690328:1328 Fixing Refactor uuid by Kimi #08
CI / CD Pipeline / build (push) Successful in 7m22s
CI / CD Pipeline / deploy (push) Failing after 12m2s
2026-03-28 13:29:14 +07:00
admin 3510a10ca0 chore(backend): add .jest-cache to .gitignore and remove tracked cache files
- Jest cache files should not be committed to version control
2026-03-28 13:13:57 +07:00
3 changed files with 20 additions and 1 deletions
+1
View File
@@ -19,6 +19,7 @@ lerna-debug.log*
# Tests
/coverage
/.nyc_output
/.jest-cache
# IDEs and editors
/.idea
+18
View File
@@ -14,3 +14,21 @@ export interface Contract {
endDate?: string;
project?: ContractProjectReference;
}
/**
* Safely extract publicId from a Contract object (ADR-019)
* @param contract - Contract object or null/undefined
* @returns publicId string or undefined
*/
export function getContractPublicId(contract: Contract | null | undefined): string | undefined {
return contract?.publicId;
}
/**
* Safely extract publicId from a Project reference object (ADR-019)
* @param project - Project reference object or null/undefined
* @returns publicId string or undefined
*/
export function getProjectPublicId(project: ContractProjectReference | null | undefined): string | undefined {
return project?.publicId;
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "nap-dms.lcbp3",
"version": "1.8.0",
"packageManager": "pnpm@10.32.1+sha512.a706938f0e89ac1456b6563eab4edf1d1faf3368d1191fc5c59790e96dc918e4456ab2e67d613de1043d2e8c81f87303e6b40d4ffeca9df15ef1ad567348f2be",
"packageManager": "pnpm@10.33.0",
"description": "> **Laem Chabang Port Phase 3 - Document Management System**\r >\r > ระบบบริหารจัดการเอกสารโครงการแบบครบวงจร สำหรับโครงการก่อสร้างท่าเรือแหลมฉบังระยะที่ 3",
"main": "index.js",
"directories": {