mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-29 09:58:27 +00:00
Update cobalt.js
This commit is contained in:
parent
5087665a5e
commit
378e1d2118
@ -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 New Issue
Block a user