Skip to content

Commit 630c1d3

Browse files
committed
statute -> statute-consolidated
1 parent 4984269 commit 630c1d3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

backend/src/db/load.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,9 @@ function buildFinlexUrl(statute: StatuteKey): { uri: string, uriOld: string } {
109109
const baseUrl = 'https://opendata.finlex.fi/finlex/avoindata/v1/akn/fi/act'
110110

111111
return {
112-
uri: `${baseUrl}/statute/${statute.year}/${statute.number}/${statute.language}@`,
113-
uriOld: `${baseUrl}/statute/${statute.year}/${statute.number}/${statute.language}@${statute.version ? statute.version : ''}`
112+
uri: `${baseUrl}/statute-consolidated/${statute.year}/${statute.number}/${statute.language}@`,
113+
uriOld: `${baseUrl}/statute-consolidated/${statute.year}/${statute.number}/${statute.language}@${statute.version ? statute.version : ''}`
114114
};
115-
/*
116-
return {
117-
uriOld: `${baseUrl}/statute-consolidated/${statute.year}/${statute.number}/${statute.language}@${statute.version ? statute.version : ''}`,
118-
uri: `${baseUrl}/statute-consolidated/${statute.year}/${statute.number}/${statute.language}@${statute.version ? statute.version : ''}`
119-
};
120-
*/
121115
}
122116

123117
function parseJudgmentUrl(url: string): JudgmentKey {

0 commit comments

Comments
 (0)