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