Skip to content

Commit

Permalink
fix: hae vapaapäivät neljän vuoden sijaan vain 3 vuotta etukäteen, ko…
Browse files Browse the repository at this point in the history
…ska niitä ei ole enempää nyt saatavilla (#528)
  • Loading branch information
haapamakim committed Jan 2, 2023
1 parent 8942aba commit 4d52c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/endDateCalculator/bankHolidaysClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function fetchBankHolidaysFromAPI() {
// Fetch current year and two more as they are available in the API

const currentYear = dayjs().year();
const rangeEndYear = currentYear + 3;
const rangeEndYear = currentYear + 2;
const dates: string[] = [];
for (let year = currentYear; year <= rangeEndYear; year++) {
try {
Expand Down

0 comments on commit 4d52c50

Please sign in to comment.