From d0d7c2d4186bf18d90321306d69bb6b5fca21d66 Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 2 Dec 2024 17:04:04 +0700 Subject: [PATCH] birthdate null --- .../OrganizationDotnetController.ts | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/controllers/OrganizationDotnetController.ts b/src/controllers/OrganizationDotnetController.ts index 090d7ad9..f0b051e1 100644 --- a/src/controllers/OrganizationDotnetController.ts +++ b/src/controllers/OrganizationDotnetController.ts @@ -199,7 +199,7 @@ export class OrganizationDotnetController extends Controller { dateStart: item.dateStart, govAgeAbsent: item.govAgeAbsent, govAgePlus: item.govAgePlus, - birthDate: item.birthDate, + birthDate: item.birthDate ?? new Date(), reasonSameDate: item.reasonSameDate, ethnicity: item.ethnicity, telephoneNumber: item.telephoneNumber, @@ -495,7 +495,7 @@ export class OrganizationDotnetController extends Controller { dateStart: profile.dateStart, govAgeAbsent: profile.govAgeAbsent, govAgePlus: profile.govAgePlus, - birthDate: profile.birthDate, + birthDate: profile.birthDate ?? new Date(), reasonSameDate: profile.reasonSameDate, telephoneNumber: profile.telephoneNumber, nationality: profile.nationality, @@ -732,7 +732,7 @@ export class OrganizationDotnetController extends Controller { dateStart: profile.dateStart, govAgeAbsent: profile.govAgeAbsent, govAgePlus: profile.govAgePlus, - birthDate: profile.birthDate, + birthDate: profile.birthDate ?? new Date(), reasonSameDate: profile.reasonSameDate, telephoneNumber: profile.telephoneNumber, nationality: profile.nationality, @@ -1028,7 +1028,7 @@ export class OrganizationDotnetController extends Controller { dateStart: profile.dateStart, govAgeAbsent: profile.govAgeAbsent, govAgePlus: profile.govAgePlus, - birthDate: profile.birthDate, + birthDate: profile.birthDate ?? new Date(), reasonSameDate: profile.reasonSameDate, telephoneNumber: profile.telephoneNumber, nationality: profile.nationality, @@ -1295,7 +1295,7 @@ export class OrganizationDotnetController extends Controller { dateStart: profile.dateStart, govAgeAbsent: profile.govAgeAbsent, govAgePlus: profile.govAgePlus, - birthDate: profile.birthDate, + birthDate: profile.birthDate ?? new Date(), reasonSameDate: profile.reasonSameDate, telephoneNumber: profile.telephoneNumber, nationality: profile.nationality, @@ -1621,7 +1621,7 @@ export class OrganizationDotnetController extends Controller { dateStart: profile.dateStart, govAgeAbsent: profile.govAgeAbsent, govAgePlus: profile.govAgePlus, - birthDate: profile.birthDate, + birthDate: profile.birthDate ?? new Date(), reasonSameDate: profile.reasonSameDate, telephoneNumber: profile.telephoneNumber, nationality: profile.nationality, @@ -1888,7 +1888,7 @@ export class OrganizationDotnetController extends Controller { dateStart: profile.dateStart, govAgeAbsent: profile.govAgeAbsent, govAgePlus: profile.govAgePlus, - birthDate: profile.birthDate, + birthDate: profile.birthDate ?? new Date(), reasonSameDate: profile.reasonSameDate, telephoneNumber: profile.telephoneNumber, nationality: profile.nationality, @@ -2072,7 +2072,7 @@ export class OrganizationDotnetController extends Controller { dateStart: profile.dateStart, govAgeAbsent: profile.govAgeAbsent, govAgePlus: profile.govAgePlus, - birthDate: profile.birthDate, + birthDate: profile.birthDate ?? new Date(), reasonSameDate: profile.reasonSameDate, telephoneNumber: profile.telephoneNumber, nationality: profile.nationality, @@ -2209,7 +2209,7 @@ export class OrganizationDotnetController extends Controller { dateStart: profile.dateStart, govAgeAbsent: profile.govAgeAbsent, govAgePlus: profile.govAgePlus, - birthDate: profile.birthDate, + birthDate: profile.birthDate ?? new Date(), reasonSameDate: profile.reasonSameDate, telephoneNumber: profile.telephoneNumber, nationality: profile.nationality, @@ -2316,7 +2316,7 @@ export class OrganizationDotnetController extends Controller { firstName: profile.firstName, lastName: profile.lastName, citizenId: profile.citizenId, - birthDate: profile.birthDate, + birthDate: profile.birthDate ?? new Date(), position: profile.position, rootId: root == null ? null : root.id, root: root == null ? null : root.orgRootName, @@ -2417,7 +2417,7 @@ export class OrganizationDotnetController extends Controller { firstName: profile.firstName, lastName: profile.lastName, citizenId: profile.citizenId, - birthDate: profile.birthDate, + birthDate: profile.birthDate ?? new Date(), position: profile.position, posMaster: posMaster == null ? null : posMaster.posMasterNo, posMasterNo: posMaster == null ? null : posMaster.posMasterNo, @@ -2589,7 +2589,7 @@ export class OrganizationDotnetController extends Controller { dateStart: item.dateStart, govAgeAbsent: item.govAgeAbsent, govAgePlus: item.govAgePlus, - birthDate: item.birthDate, + birthDate: item.birthDate ?? new Date(), reasonSameDate: item.reasonSameDate, ethnicity: item.ethnicity, telephoneNumber: item.telephoneNumber,