restart b

This commit is contained in:
Lei PAN
2023-04-26 14:03:22 +02:00
parent 08d70516c5
commit b323e6d4aa
4 changed files with 46 additions and 21 deletions
+2 -2
View File
@@ -124,8 +124,8 @@ async function startBook(contactPojo, device, selectedStore, audioAnalyse, alert
}
async function startWithList(contacts, device, selectedStore, audioAnalyse, alertBeep) {
// let duplicatedList = [].concat(contacts).concat(contacts).concat(contacts)
let duplicatedList = [].concat(contacts)
let duplicatedList = [].concat(contacts).concat(contacts).concat(contacts)
// let duplicatedList = [].concat(contacts)
await duplicatedList.reduce(async (promise, contactPojo) => {
// This line will wait for the last async function to finish.
// The first iteration uses an already resolved Promise