Skip to content

Commit

Permalink
isregistered bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
gricn committed Nov 9, 2020
1 parent 93070c4 commit 861a20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/routes/isregistered.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ isregistered.get('/:id', async (req, res) => {
const { rows } = await db.query('select count(openid),gender from userinfo where openid = $1 group by openid', [id])
// console.log('result:' + JSON.stringify(rows))
if (rows[0].count != "0")
res.send({ "exist": false, "gender": rows[0].gender})
res.send({ "exist": true, "gender": rows[0].gender})
else
res.send({ "exist": false })
} catch (e) {
Expand Down

0 comments on commit 861a20b

Please sign in to comment.