Skip to content

Commit

Permalink
Update case.transformer.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
unakb committed May 24, 2024
1 parent d58efca commit b3696e2
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,15 @@ const getDefendantsInfo = (defendants: Defendant[] | undefined) => {
return
}

const expiryDays = 28 * 24 * 60 * 60 * 1000

return defendants.map((defendant) => {
const { verdictViewDate } = defendant
return {
...defendant,
verdictAppealDeadline: defendant.verdictViewDate
verdictAppealDeadline: verdictViewDate
? new Date(
new Date(defendant.verdictViewDate).getTime() +
28 * 24 * 60 * 60 * 1000,
new Date(verdictViewDate).getTime() + expiryDays,
).toISOString()
: undefined,
}
Expand Down

0 comments on commit b3696e2

Please sign in to comment.