whoops
This commit is contained in:
parent
48d5c1a937
commit
1f27c7a3df
4
index.js
4
index.js
|
@ -272,7 +272,7 @@ app.get("/api/levels", async (req, res) => {
|
||||||
}
|
}
|
||||||
if (!rows) return res.sendStatus(204) // No content
|
if (!rows) return res.sendStatus(204) // No content
|
||||||
if (rows) {
|
if (rows) {
|
||||||
let output = row;
|
let output = rows;
|
||||||
if (!output.tag) output.tag = "Unknown#0000";
|
if (!output.tag) output.tag = "Unknown#0000";
|
||||||
return res.json(output);
|
return res.json(output);
|
||||||
}
|
}
|
||||||
|
@ -288,7 +288,7 @@ app.get("/api/levels/:id", async (req, res) => {
|
||||||
}
|
}
|
||||||
if (!row) return res.sendStatus(404) // Not found
|
if (!row) return res.sendStatus(404) // Not found
|
||||||
if (row) {
|
if (row) {
|
||||||
let output = row;
|
let output = rows;
|
||||||
if (!output.tag) output.tag = "Unknown#0000";
|
if (!output.tag) output.tag = "Unknown#0000";
|
||||||
return res.json(output);
|
return res.json(output);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue