cleaning things up

This commit is contained in:
Luke Berndt
2024-02-19 09:38:13 -05:00
parent e7c22a757c
commit 040c6728fc
4 changed files with 2 additions and 10 deletions

View File

@@ -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 = {};

View File

@@ -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");

View File

@@ -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

View File

@@ -2,7 +2,7 @@
#
# docker build -t mongo .
FROM mongo:5-focal
FROM mongo:7-jammy
MAINTAINER Luke Berndt <lukekb@gmail.com>