.
This commit is contained in:
parent
a4bb28d909
commit
7f4cbfa588
@ -248,7 +248,13 @@ const extraControllers = {
|
||||
return Promise.all(getUserDevicesList)
|
||||
}).then(function (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(buildMessagesPromise)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user