From 197c247e71bcb1e45d64303532d13d7f4032bba8 Mon Sep 17 00:00:00 2001 From: sai80082 Date: Thu, 12 Feb 2026 14:40:28 +0530 Subject: [PATCH] fix: update birthDate type in IPerson interface and adjust cleanUpPerson function --- 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 8002fa6..97a34bc 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 ? new Date(person.birthDate) : null, + birthDate: person.birthDate, 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 3e0163b..3490140 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: Date | null; + birthDate: string | null; thumbnailPath: string; isHidden: boolean; updatedAt: Date;