Removed Star notification

This commit is contained in:
Luke Berndt
2021-07-31 08:40:39 -04:00
parent fec4467e97
commit d9f89aa79a
2 changed files with 2 additions and 11 deletions

View File

@@ -235,14 +235,7 @@ exports.upsertGroup = function(req, res, next) {
var message = "";
var groupName = req.body.groupName.replace(/[^\w\s]/g, "");
var talkgroups = JSON.parse(req.body.talkgroups);
console.log(
"Talkgroups: " +
talkgroups +
" for group: " +
groupName +
" array: " +
Array.isArray(talkgroups)
);
if (!talkgroups.length || !Array.isArray(talkgroups)) {
message = "Talkgroups need to be selected, group can not be empty ";
}

View File

@@ -168,9 +168,7 @@ app.get('/:shortName/calls/newer', calls.get_newer_calls);
app.get('/:shortName/calls/older', calls.get_older_calls);
app.get('/:shortName/calls/:time/older', calls.get_iphone_calls);
app.get('/:shortName/calls', calls.get_calls);
app.post('/:shortName/star/:id', calls.add_star, function (req, res) {
notify_clients(req.call);
});
app.post('/:shortName/star/:id', calls.add_star);
/*------ UPLOADS ---------- upload.single('call'), uploads.upload,*/