(body, installations)
| 13 | }; |
| 14 | |
| 15 | const successfulAny = function (body, installations) { |
| 16 | const promises = installations.map(device => { |
| 17 | return Promise.resolve({ |
| 18 | transmitted: true, |
| 19 | device: device, |
| 20 | }); |
| 21 | }); |
| 22 | |
| 23 | return Promise.all(promises); |
| 24 | }; |
| 25 | |
| 26 | const provideInstallations = function (num) { |
| 27 | if (!num) { |