Skip to content

Commit d57133e

Browse files
authored
Merge pull request #60 from judemanutd/bugfix/project-dates
fixes issue with project start and end date
2 parents 7dc72b4 + f98f8d2 commit d57133e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

functions/src/repository/ProjectRepo.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ export const parseRow = async (row: FirebaseFirestore.DocumentData, isPublic: bo
361361
row.client.createdAt = row.client.createdAt.toDate();
362362
row.client.updatedAt = row.client.updatedAt.toDate();
363363

364+
if (row.startDate) row.startDate = row.startDate.toDate();
365+
if (row.endDate) row.endDate = row.endDate.toDate();
366+
364367
row.createdAt = row.createdAt.toDate();
365368
row.updatedAt = row.updatedAt.toDate();
366369

0 commit comments

Comments
 (0)