mirror of
https://github.com/danbulant/mysqlExporter
synced 2026-07-05 19:30:52 +00:00
Always return array in fi
This commit is contained in:
parent
6d2865bac6
commit
41ef40c7e4
1 changed files with 3 additions and 1 deletions
4
index.js
4
index.js
|
|
@ -38,7 +38,9 @@ app.get("/", (req, res) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/fieldsIgnored", (req, res) => {
|
app.get("/fieldsIgnored", (req, res) => {
|
||||||
res.json(config.fields_ignored);
|
var fi = config.fields_ignored;
|
||||||
|
if(!Array.isArray(fi)) fi = [];
|
||||||
|
res.json(fi);
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/tables", (req, res) => {
|
app.get("/tables", (req, res) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue