Corrected output path generation
This commit is contained in:
2
index.js
2
index.js
@@ -103,7 +103,7 @@ function checkMetar() {
|
|||||||
items.push(newMetar(metars[i]));
|
items.push(newMetar(metars[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
let outputPath = METAR_SERVICE + "/" + icao;
|
let outputPath = path.join(METAR_SERVICE, icao);
|
||||||
writeFeed(generateFeed(METAR_SERVICE, icao, items, outputPath), outputPath);
|
writeFeed(generateFeed(METAR_SERVICE, icao, items, outputPath), outputPath);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user