print contact email

This commit is contained in:
2022-09-19 20:57:39 +02:00
parent cc688ddbfd
commit 6d1543570a
+4 -1
View File
@@ -64,12 +64,15 @@ async function startBookWithNumbers(startNumber, endNumber, selectedStore, pathT
if (endNumber <= allContactList.length) { if (endNumber <= allContactList.length) {
contactList = allContactList.slice(startNumber, endNumber); contactList = allContactList.slice(startNumber, endNumber);
} else { } else {
contactList = allContactList; contactList = allContactList.slice(startNumber, allContactList.length);
} }
if (contactList.length === 0) { if (contactList.length === 0) {
alert("联系人数为0") alert("联系人数为0")
return return
} }
contactList.forEach((contact) => {
console.log(contact.mail)
})
mongoManager.connect().then(r => { mongoManager.connect().then(r => {
filterAlreadyBookedContacts(contactList).then(listToBook => { filterAlreadyBookedContacts(contactList).then(listToBook => {
console.log("number of contacts to book:" + listToBook.length) console.log("number of contacts to book:" + listToBook.length)