Skip to content

Commit

Permalink
download: Don't hardcode year in report generation end date
Browse files Browse the repository at this point in the history
  • Loading branch information
Vainock committed Aug 13, 2023
1 parent c930876 commit 71f38d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export async function getTranslators(targetLanguageIds: string[]): Promise<strin
unit: 'words',
format: 'json',
dateFrom: '2014-01-01T00:00:00+00:00',
dateTo: '2030-01-01T00:00:00+00:00',
dateTo: new Date().getFullYear() + '-12-31T23:59:59+00:00',
languageId
}
})
Expand Down
4 changes: 2 additions & 2 deletions tests/download.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ it(getTranslators.name, async () => {
unit: 'words',
format: 'json',
dateFrom: '2014-01-01T00:00:00+00:00',
dateTo: '2030-01-01T00:00:00+00:00',
dateTo: new Date().getFullYear() + '-12-31T23:59:59+00:00',
languageId: 'de'
}
})
Expand All @@ -192,7 +192,7 @@ it(getTranslators.name, async () => {
unit: 'words',
format: 'json',
dateFrom: '2014-01-01T00:00:00+00:00',
dateTo: '2030-01-01T00:00:00+00:00',
dateTo: new Date().getFullYear() + '-12-31T23:59:59+00:00',
languageId: 'fr'
}
})
Expand Down

0 comments on commit 71f38d4

Please sign in to comment.