.
This commit is contained in:
parent
a4bb28d909
commit
7f4cbfa588
@ -248,7 +248,13 @@ const extraControllers = {
|
|||||||
return Promise.all(getUserDevicesList)
|
return Promise.all(getUserDevicesList)
|
||||||
}).then(function (userDeviceList) {
|
}).then(function (userDeviceList) {
|
||||||
console.log(userDeviceList);
|
console.log(userDeviceList);
|
||||||
return new Promise(function(resolve) { resolve(userDeviceList); });
|
let result = [];
|
||||||
|
userDeviceList.forEach(function (elements) {
|
||||||
|
elements.forEach(function (item) {
|
||||||
|
result.push(item)
|
||||||
|
})
|
||||||
|
});
|
||||||
|
return new Promise(function (resolve) { resolve(result); });
|
||||||
})
|
})
|
||||||
.then(disableInvalidUserDevicesPromise)
|
.then(disableInvalidUserDevicesPromise)
|
||||||
.then(buildMessagesPromise)
|
.then(buildMessagesPromise)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user