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;