not work on xiaomi

This commit is contained in:
2023-05-18 11:06:41 +02:00
parent 0e868536df
commit 465861a5ab
3 changed files with 57 additions and 44 deletions
+4 -2
View File
@@ -11,7 +11,8 @@ const NINETY_DAYS_IN_S = 3600 * 24 * 30 * 3;
let excelUtil = new ExcelUtil();
let collectionName = formatDate(new Date())
// device_to_excludes = ["47e7e36b", "e30eb015"]
device_to_excludes = ["47e7e36b"]
// device_to_excludes = ["47e7e36b"]
device_to_excludes = []
async function filterAlreadyBookedContacts(contactList) {
let alreadyBookedContacts = await mongoManager.getAllSuccessfulItemsForDay(collectionName);
@@ -117,7 +118,8 @@ async function startBook(contactPojo, device, selectedStore, audioAnalyse, alert
if (await needToBook(contactPojo, mongoManager)) {
let commandor = new CommandorPage(contactPojo, device, mongoManager, selectedStore, audioAnalyse, alertBeep);
//read contacts form excel
return await commandor.loadPage();
let port = 9222;
return await commandor.loadPage(port);
} else {
console.log("do not send request --> skip")
}