mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 09:48:10 -05:00
less debug
This commit is contained in:
@@ -101,13 +101,13 @@ process.nextTick(function() {
|
|||||||
|
|
||||||
|
|
||||||
if (item.ignoreUnknownTalkgroup == true) {
|
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)
|
//await Talkgroup.findOne({ answer: 42 }).select({ _id: 1 }).lean().then(doc => !!doc)
|
||||||
talkgroupExists = await Talkgroup.exists({
|
talkgroupExists = await Talkgroup.exists({
|
||||||
'shortName': shortName,
|
'shortName': shortName,
|
||||||
'num': talkgroupNum
|
'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();
|
//talkgroupExists = await Talkgroup.findOne({ 'shortName': shortName, 'num': talkgroupNum }).select({ _id: 1 }).lean().then(doc => !!doc).exec();
|
||||||
if (!talkgroupExists) {
|
if (!talkgroupExists) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ async function getCalls(req, res, next) {
|
|||||||
var title = item.len + " second transmission"
|
var title = item.len + " second transmission"
|
||||||
|
|
||||||
if (tg) {
|
if (tg) {
|
||||||
console.log(tg)
|
//console.log(tg)
|
||||||
title = tg.description;
|
title = tg.description;
|
||||||
}
|
}
|
||||||
const callId = req.query["call-id"];
|
const callId = req.query["call-id"];
|
||||||
|
|||||||
Reference in New Issue
Block a user