From cb1cf46b2db34ef860c62df47da948e7115db140 Mon Sep 17 00:00:00 2001 From: Expand-sys Date: Wed, 2 Jun 2021 09:58:25 +1000 Subject: [PATCH] try is good for the heart the more you try the more you fart --- index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 584353e..aef70ae 100644 --- a/index.js +++ b/index.js @@ -219,7 +219,11 @@ app.get("/BankF", ensureAuthenticated, async function (req, res) { console.log(e); } console.log("query finished " + Date.now()); - logsent = logsent.body.value; + try { + logsent = logsent.body.value; + } catch (e) { + console.log(e); + } if (logsent == 1 || logsent == -1 || logsent == null) { logsent = undefined; @@ -469,7 +473,6 @@ app.get("/logout", function (req, res) { res.render("login", { marketplace: process.env.MARKETPLACE, random: papy(), - }); }); });