From 085e7a746c90d4250b4e1717f792efcd43dbe0ef Mon Sep 17 00:00:00 2001 From: rnd Date: Fri, 15 Jun 2018 07:27:12 +0200 Subject: [PATCH] replaced hoisted var with const --- rules.js | 4 ++-- users.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rules.js b/rules.js index a9b2093..1c1692a 100644 --- a/rules.js +++ b/rules.js @@ -138,8 +138,8 @@ const createRule = (req, res, next) => { action: req.body.action }) .then((d) => { - var jsonobj - jsonobj = { + console.log(d) + const jsonobj = { type: 'rules', id: parseInt(d[0].flowspecruleid) } diff --git a/users.js b/users.js index 8ab87aa..0ab7514 100644 --- a/users.js +++ b/users.js @@ -266,9 +266,9 @@ const updateUser = (req, res, next) => { sqlUpdateUser += ' WHERE uuid_administratorid = $(userid) RETURNING *; COMMIT;' } - console.log(sqlUpdateUser) -// uuid_customerid = $(couuid) -// , customerid=$(coid) + // console.log(sqlUpdateUser) + // uuid_customerid = $(couuid) + // , customerid=$(coid) db.foddb.any(sqlUpdateUser, { couuid: req.body.couuid,