Skip to content

Commit

Permalink
replaced hoisted var with const
Browse files Browse the repository at this point in the history
  • Loading branch information
ashokaditya committed Jun 15, 2018
1 parent 568e8d5 commit 085e7a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
6 changes: 3 additions & 3 deletions users.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 085e7a7

Please sign in to comment.