Revert "fix: update birthDate type in IPerson interface and adjust cleanUpPerson function"

This reverts commit 197c247e71.
This commit is contained in:
sai80082 committed 2026-02-17 08:50:51 +05:30
1 parent 6b2d072787
commit e2485e643f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ export const cleanUpPerson = (person: IAPIPerson, skipMock?: boolean): IPerson =
return { return {
...person, ...person,
thumbnailPath: PERSON_THUBNAIL_PATH(person.id), thumbnailPath: PERSON_THUBNAIL_PATH(person.id),
birthDate: person.birthDate, birthDate: person.birthDate ? new Date(person.birthDate) : null,
updatedAt: new Date(person.updatedAt), updatedAt: new Date(person.updatedAt),
} }
} }
+1 -1
View File
@@ -1,7 +1,7 @@
export interface IPerson { export interface IPerson {
id: string; id: string;
name: string; name: string;
birthDate: string | null; birthDate: Date | null;
thumbnailPath: string; thumbnailPath: string;
isHidden: boolean; isHidden: boolean;
updatedAt: Date; updatedAt: Date;