fix: build fixes

Signed-off-by: Varun Raj <mailme@varunraj.in>
This commit is contained in:
Varun Raj committed 2024-08-23 23:52:53 +05:30
1 parent 82510b8780
commit abcf6e3880
3 files changed
+2 -3

No files matched your search

+1 -3
View File
@@ -10,9 +10,7 @@ interface IAPIPerson extends Omit<IPerson, 'birthDate' | 'updatedAt'> {
export const cleanUpPerson = (person: IAPIPerson, skipMock?: boolean): IPerson => {
return {
...person,
// thumbnailPath: PERSON_THUBNAIL_PATH(person.id),
thumbnailPath: person.name === "Varun Raj" || skipMock === true ? PERSON_THUBNAIL_PATH(person.id) : "https://i.pravatar.cc/150?u=" + person.id,
thumbnailPath: PERSON_THUBNAIL_PATH(person.id),
birthDate: person.birthDate ? new Date(person.birthDate) : null,
updatedAt: new Date(person.updatedAt),
}