Merge branch 'dev' into main
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -56,3 +56,5 @@ profile-*
|
||||
profile*
|
||||
*clinic*
|
||||
*flamegraph*
|
||||
|
||||
.env
|
||||
|
||||
4
index.js
4
index.js
@@ -81,6 +81,10 @@ app.use('/rep', async (req, res) => {
|
||||
}
|
||||
}
|
||||
|
||||
if (!circoForeign) {
|
||||
throw new Error('Error trying to parse this country : ' + countryName)
|
||||
}
|
||||
|
||||
// If a code is found, send the associated file containing the representant data
|
||||
const repFile = readFileSync(join(__dirname, `public/reps/${lookupTable[circoForeign]}.json`), 'utf-8')
|
||||
res.end(repFile)
|
||||
|
||||
@@ -84,7 +84,7 @@ module.exports = {
|
||||
"Slovakia",
|
||||
],
|
||||
"099-08": [
|
||||
"Italia",
|
||||
"Italy",
|
||||
"Malta",
|
||||
"San Marino",
|
||||
"Holy See",
|
||||
@@ -147,7 +147,7 @@ module.exports = {
|
||||
"São Tomé and Príncipe",
|
||||
"Angola",
|
||||
"Congolese",
|
||||
"Democratic Republic of Congo",
|
||||
"Democratic Republic of the Congo",
|
||||
"Iraq",
|
||||
"Jordan",
|
||||
"Lebanon",
|
||||
|
||||
Reference in New Issue
Block a user