From e2485e643ff1432e74cf5d6f473b53af3ac27417 Mon Sep 17 00:00:00 2001 From: sai80082 Date: Tue, 17 Feb 2026 08:50:51 +0530 Subject: [PATCH] Revert "fix: update birthDate type in IPerson interface and adjust cleanUpPerson function" This reverts commit 197c247e71bcb1e45d64303532d13d7f4032bba8. --- src/helpers/person.helper.ts | 2 +- src/types/person.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/person.helper.ts b/src/helpers/person.helper.ts index 97a34bc..8002fa6 100644 --- a/src/helpers/person.helper.ts +++ b/src/helpers/person.helper.ts @@ -11,7 +11,7 @@ export const cleanUpPerson = (person: IAPIPerson, skipMock?: boolean): IPerson = return { ...person, thumbnailPath: PERSON_THUBNAIL_PATH(person.id), - birthDate: person.birthDate, + birthDate: person.birthDate ? new Date(person.birthDate) : null, updatedAt: new Date(person.updatedAt), } } \ No newline at end of file diff --git a/src/types/person.d.ts b/src/types/person.d.ts index 3490140..3e0163b 100644 --- a/src/types/person.d.ts +++ b/src/types/person.d.ts @@ -1,7 +1,7 @@ export interface IPerson { id: string; name: string; - birthDate: string | null; + birthDate: Date | null; thumbnailPath: string; isHidden: boolean; updatedAt: Date;