This commit is contained in:
David Arranz 2019-11-07 19:02:35 +01:00
parent a4bb28d909
commit 7f4cbfa588

View File

@ -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)