Skip to content

Commit 99a8170

Browse files
committed
fix workaround
1 parent 2b45d95 commit 99a8170

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎backend/src/server/api/services/service.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ module.exports = {
378378
logger.debug({ dataModel })
379379
//let sourceFileTemp2 = false
380380
if ((!source.data || source.data && !source.data[0]) && source.url) {
381-
source.url = source.url.replace("https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/data/", "https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/")//TODO temporary fix for sdmx ; to be removed when sdmx is ready to be tested
381+
source.url = source.url.replace("https://ec.europa.eu/eurostat/api/dissemination/sdmx/2.1/data/", "https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/").split("?")[0]//TODO temporary fix for sdmx ; to be removed when sdmx is ready to be tested
382382
source.download = await axios.get(source.url)
383383
source.data = source.download.data
384384
delete source.download.headers

0 commit comments

Comments
 (0)