Update cobalt.js
This commit is contained in:
parent
5087665a5e
commit
378e1d2118
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ if (fs.existsSync('./.env')) {
|
||||||
res.status(j.status).json(j.body);
|
res.status(j.status).json(j.body);
|
||||||
} else {
|
} else {
|
||||||
let j = apiJSON(3, { t: loc(languageCode(req), 'ErrorNoLink', process.env.selfURL) })
|
let j = apiJSON(3, { t: loc(languageCode(req), 'ErrorNoLink', process.env.selfURL) })
|
||||||
if (!j === undefined && j.status && j.body) {
|
if (!typeof j === "undefined" && j.status && j.body) {
|
||||||
res.status(j.status).json(j.body);
|
res.status(j.status).json(j.body);
|
||||||
} else {
|
} else {
|
||||||
res.status(500).json({ 'status': 'error', 'text': loc(languageCode(req), 'ErrorUnknownStatus') })
|
res.status(500).json({ 'status': 'error', 'text': loc(languageCode(req), 'ErrorUnknownStatus') })
|
||||||
|
|
Loading…
Reference in a new issue