mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 01:37:48 -05:00
cleaning things up
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
const { ObjectId } = require('mongodb');
|
const { ObjectId } = require('mongodb');
|
||||||
var { callModel: Call } = require("../models/call");
|
var { callModel: Call } = require("../models/call");
|
||||||
const Group = require("../models/group");
|
const Group = require("../models/group");
|
||||||
|
const opentelemetry = require('@opentelemetry/api');
|
||||||
var defaultNumResults = 50;
|
var defaultNumResults = 50;
|
||||||
|
|
||||||
var channels = {};
|
var channels = {};
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
var path = require('path');
|
var path = require('path');
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
const opentelemetry = require('@opentelemetry/api');
|
const opentelemetry = require('@opentelemetry/api');
|
||||||
|
|
||||||
var { context, propagation, trace } = require('@opentelemetry/api');
|
|
||||||
var sysStats = require("../sys_stats");
|
var sysStats = require("../sys_stats");
|
||||||
var System = require("../models/system");
|
var System = require("../models/system");
|
||||||
var Talkgroup = require("../models/talkgroup");
|
var Talkgroup = require("../models/talkgroup");
|
||||||
@@ -27,9 +25,6 @@ const client = new S3Client({
|
|||||||
|
|
||||||
exports.upload = async function (req, res, next) {
|
exports.upload = async function (req, res, next) {
|
||||||
|
|
||||||
const tracer = trace.getTracer('upload-tracer');
|
|
||||||
|
|
||||||
|
|
||||||
process.nextTick(async () => {
|
process.nextTick(async () => {
|
||||||
if (!req.file || ((path.extname(req.file.originalname) != '.m4a') && (path.extname(req.file.originalname) != '.mp3'))) {
|
if (!req.file || ((path.extname(req.file.originalname) != '.m4a') && (path.extname(req.file.originalname) != '.mp3'))) {
|
||||||
console.warn("[" + req.params.shortName + "] Error file name is wrong or file does not exist");
|
console.warn("[" + req.params.shortName + "] Error file name is wrong or file does not exist");
|
||||||
|
|||||||
@@ -10,10 +10,7 @@ var spots = (24 * 60) / timePeriod; // the number of spots needed to keep track
|
|||||||
|
|
||||||
|
|
||||||
async function updateActiveSystems() {
|
async function updateActiveSystems() {
|
||||||
|
|
||||||
// Go through all of the Systems
|
// Go through all of the Systems
|
||||||
|
|
||||||
|
|
||||||
for await (let item of System.find()) {
|
for await (let item of System.find()) {
|
||||||
// go through all the systems
|
// go through all the systems
|
||||||
// if you have recieved some calls during that last period, make the system active
|
// if you have recieved some calls during that last period, make the system active
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# docker build -t mongo .
|
# docker build -t mongo .
|
||||||
|
|
||||||
FROM mongo:5-focal
|
FROM mongo:7-jammy
|
||||||
|
|
||||||
MAINTAINER Luke Berndt <lukekb@gmail.com>
|
MAINTAINER Luke Berndt <lukekb@gmail.com>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user