mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-13 09:17:30 -05:00
Removed Star notification
This commit is contained in:
@@ -235,14 +235,7 @@ exports.upsertGroup = function(req, res, next) {
|
|||||||
var message = "";
|
var message = "";
|
||||||
var groupName = req.body.groupName.replace(/[^\w\s]/g, "");
|
var groupName = req.body.groupName.replace(/[^\w\s]/g, "");
|
||||||
var talkgroups = JSON.parse(req.body.talkgroups);
|
var talkgroups = JSON.parse(req.body.talkgroups);
|
||||||
console.log(
|
|
||||||
"Talkgroups: " +
|
|
||||||
talkgroups +
|
|
||||||
" for group: " +
|
|
||||||
groupName +
|
|
||||||
" array: " +
|
|
||||||
Array.isArray(talkgroups)
|
|
||||||
);
|
|
||||||
if (!talkgroups.length || !Array.isArray(talkgroups)) {
|
if (!talkgroups.length || !Array.isArray(talkgroups)) {
|
||||||
message = "Talkgroups need to be selected, group can not be empty ";
|
message = "Talkgroups need to be selected, group can not be empty ";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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/older', calls.get_older_calls);
|
||||||
app.get('/:shortName/calls/:time/older', calls.get_iphone_calls);
|
app.get('/:shortName/calls/:time/older', calls.get_iphone_calls);
|
||||||
app.get('/:shortName/calls', calls.get_calls);
|
app.get('/:shortName/calls', calls.get_calls);
|
||||||
app.post('/:shortName/star/:id', calls.add_star, function (req, res) {
|
app.post('/:shortName/star/:id', calls.add_star);
|
||||||
notify_clients(req.call);
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
/*------ UPLOADS ---------- upload.single('call'), uploads.upload,*/
|
/*------ UPLOADS ---------- upload.single('call'), uploads.upload,*/
|
||||||
|
|||||||
Reference in New Issue
Block a user