Merge branch 'release' into merge-release-into-dev
This commit is contained in:
commit
b885e5698c
11 changed files with 132 additions and 25 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue