From ea3e1e70896fd093a91de8fd26e44a3bdd8003d0 Mon Sep 17 00:00:00 2001 From: Nguyen Sy Thanh Son Date: Wed, 11 Sep 2019 09:37:31 +0700 Subject: [PATCH] Update candidates.js --- apis/candidates.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apis/candidates.js b/apis/candidates.js index 928df485..d9a8f1ef 100644 --- a/apis/candidates.js +++ b/apis/candidates.js @@ -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