Skip to content

Commit

Permalink
Update candidates.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhson1085 committed Sep 11, 2019
1 parent 4371ba9 commit ea3e1e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apis/candidates.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,8 @@ router.post('/apply', async function (req, res, next) {
if (isCandidate) {
await db.Candidate.updateOne({
smartContractAddress: config.get('blockchain.validatorAddress'),
candidate: candidate
candidate: candidate,
owner: walletProvider.address
}, {
$set: {
name: req.query.name
Expand Down

0 comments on commit ea3e1e7

Please sign in to comment.