Skip to content

Commit

Permalink
fix: rename vars
Browse files Browse the repository at this point in the history
  • Loading branch information
samparsky committed Feb 4, 2019
1 parent 7316e31 commit 0a35a6f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions routes/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function postHeartBeat(req, res, next) {

const validatorMsgCol = db.getMongo().collection('validatorMessages')

const message = req.body.message
const msg = req.body.message
if(!isHearbeatMsgValid(message)){
res.sendStatus(400)
return
Expand All @@ -126,8 +126,10 @@ function postHeartBeat(req, res, next) {
channelId: req.channel.id,
from: req.session.uid, // @TODO recover sig
submittedBy: req.session.uid,
message,
type: "HeartBeat"
msg: {
...msg,
type: "HeartBeat"
}
}).then(function(){
res.send({success: true})
})
Expand Down

0 comments on commit 0a35a6f

Please sign in to comment.