Merge branch 'release' into merge-release-into-dev

This commit is contained in:
Rafael Taranto 2018-12-27 15:01:10 -03:00
commit b885e5698c
11 changed files with 132 additions and 25 deletions

View file

@ -311,10 +311,10 @@ function authorize (req, res, next) {
const deviceId = req.deviceId
return pairing.isPaired(deviceId)
.then(r => {
if (r.isDevicePaired) {
.then(deviceName => {
if (deviceName) {
req.deviceId = deviceId
req.deviceName = r.deviceName
req.deviceName = deviceName
return next()
}