cashEnabled bug fixes
This commit is contained in:
parent
54611f6c17
commit
b6568baa5c
3 changed files with 9 additions and 4 deletions
|
|
@ -24,6 +24,7 @@ const pids = {}
|
|||
const reboots = {}
|
||||
|
||||
function poll (req, res, next) {
|
||||
console.log('DEBUG77')
|
||||
const deviceId = req.deviceId
|
||||
const deviceTime = req.deviceTime
|
||||
const pid = req.query.pid
|
||||
|
|
@ -54,7 +55,7 @@ function poll (req, res, next) {
|
|||
idVerificationEnabled: config.idVerificationEnabled,
|
||||
smsVerificationEnabled: config.smsVerificationEnabled,
|
||||
cartridges,
|
||||
twoWayMode: !!cartridges,
|
||||
twoWayMode: config.cashOutEnabled,
|
||||
zeroConfLimit: config.zeroConfLimit,
|
||||
fiatTxLimit: config.cashOutTransactionLimit,
|
||||
reboot,
|
||||
|
|
@ -142,11 +143,13 @@ function ca (req, res) {
|
|||
}
|
||||
|
||||
function pair (req, res, next) {
|
||||
console.log('DEBUG100')
|
||||
const token = req.query.token
|
||||
const deviceId = req.deviceId
|
||||
|
||||
return pairing.pair(token, deviceId)
|
||||
.then(valid => {
|
||||
console.log('DEBUG102')
|
||||
if (valid) return res.end()
|
||||
throw httpError('Pairing failed')
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue