WHOOPS AGAIN

This commit is contained in:
Christopher Cookman 2023-04-22 18:38:36 -06:00
parent 1f27c7a3df
commit 71911487a8
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -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 = rows; let output = row;
if (!output.tag) output.tag = "Unknown#0000"; if (!output.tag) output.tag = "Unknown#0000";
return res.json(output); return res.json(output);
} }