Skip to content

Commit

Permalink
10391 - making mapper use optional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
codyseibert committed Oct 2, 2024
1 parent b2f5fd4 commit 8bc2e41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web-api/src/persistence/postgres/messages/mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export function messageResultEntity(message) {
...message,
caseStatus: message.status,
caseTitle: Case.getCaseTitle(message.caption || ''),
completedAt: message.completedAt.toISOString(),
completedAt: message.completedAt?.toISOString(),
createdAt: message.createdAt.toISOString(),
trialDate: message.trialDate.toISOString(),
trialDate: message.trialDate?.toISOString(),
}),
);
}

0 comments on commit 8bc2e41

Please sign in to comment.