Skip to content

Commit

Permalink
Merged in usr-apis (pull request #8)
Browse files Browse the repository at this point in the history
replaced hoisted var with const

Approved-by: Ashokaditya <ashokaditya.design@gmail.com>
  • Loading branch information
ashokaditya committed Jun 15, 2018
2 parents bdf04ee + 085e7a7 commit e483e63
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 e483e63

Please sign in to comment.