less debug

This commit is contained in:
Luke Berndt
2021-06-16 22:21:19 -04:00
parent 15dba5e89f
commit 19643c13c2
2 changed files with 3 additions and 3 deletions

View File

@@ -101,13 +101,13 @@ process.nextTick(function() {
if (item.ignoreUnknownTalkgroup == true) {
console.log("ignore unknown talkgroup ");
//console.log("ignore unknown talkgroup ");
//await Talkgroup.findOne({ answer: 42 }).select({ _id: 1 }).lean().then(doc => !!doc)
talkgroupExists = await Talkgroup.exists({
'shortName': shortName,
'num': talkgroupNum
});
console.log("In talkgroup: " + talkgroupExists);
//console.log("In talkgroup: " + talkgroupExists);
//talkgroupExists = await Talkgroup.findOne({ 'shortName': shortName, 'num': talkgroupNum }).select({ _id: 1 }).lean().then(doc => !!doc).exec();
if (!talkgroupExists) {
try {

View File

@@ -143,7 +143,7 @@ async function getCalls(req, res, next) {
var title = item.len + " second transmission"
if (tg) {
console.log(tg)
//console.log(tg)
title = tg.description;
}
const callId = req.query["call-id"];