Skip to content

Commit

Permalink
Revert "add new Date() to setDate calls"
Browse files Browse the repository at this point in the history
This reverts commit 8133dca.
  • Loading branch information
danielhusar committed Jun 29, 2020
1 parent 8133dca commit 94a3a90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/api/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default async (
return res.send({ message: 'Invalid params' })
}

const taxForm: TaxForm = calculate(setDate(taxFormUserInput, new Date()))
const taxForm: TaxForm = calculate(setDate(taxFormUserInput))
const attachmentXml = convertToXML(taxForm)
const attachmentPdf = buildPdf(taxForm)

Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/pdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ export default async (
}

const taxFormUserInput: TaxFormUserInput = JSON.parse(rawTaxFormUserInput)
const taxForm: TaxForm = calculate(setDate(taxFormUserInput, new Date()))
const taxForm: TaxForm = calculate(setDate(taxFormUserInput))

res.setHeader(
'content-disposition',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/api/xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default async (
}

const taxFormUserInput: TaxFormUserInput = JSON.parse(rawTaxFormUserInput)
const taxForm: TaxForm = calculate(setDate(taxFormUserInput, new Date()))
const taxForm: TaxForm = calculate(setDate(taxFormUserInput))

res.setHeader(
'content-disposition',
Expand Down

0 comments on commit 94a3a90

Please sign in to comment.