Update logging in check for waitingmsgs

This commit is contained in:
Mashintime 2023-08-09 21:56:09 -04:00
parent f29efac943
commit c03b4b0cd9

View file

@ -2776,7 +2776,6 @@ function changeGuiDesign(design) {
}
function checkForWaitingMessages(dxcall) {
console.log(dxcall);
db.find({
selector: {
dxcallsign: dxcall,
@ -2786,6 +2785,7 @@ function checkForWaitingMessages(dxcall) {
},
})
.then(function (result) {
console.log("Found " + result.docs.length + " messages waiting for " + dxcall)
// handle result
if (result.docs.length > 0) {
// only want to process the first available item object, then return
@ -2820,7 +2820,7 @@ function checkForWaitingMessages(dxcall) {
}
return;
} else {
console.log("nope");
//console.log("nope");
}
})
.catch(function (err) {