update TG to fix app

This commit is contained in:
Luke Berndt
2023-11-13 09:17:06 -05:00
parent b792843be7
commit 48414672d3
4 changed files with 9 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ exports.get_talkgroups = async function (req, res) {
var talkgroups = {};
for (var tg in tg_results) {
var talkgroup = {num: tg_results[tg].num, alpha: tg_results[tg].alpha, description: tg_results[tg].description}
var talkgroup = {_id: tg_results[tg]._id, num: tg_results[tg].num, alpha: tg_results[tg].alpha, description: tg_results[tg].description}
talkgroups[tg_results[tg].num] = talkgroup;
}
res.contentType('json');