This commit is contained in:
PxlLoewe
2025-06-29 01:43:48 -07:00
parent c0e488b3fd
commit d6e611c5a2

View File

@@ -1,7 +1,6 @@
import { AdminMessage, getPublicUser, MissionLog, Prisma, prisma } from "@repo/db"; import { AdminMessage, getPublicUser, MissionLog, Prisma, prisma } from "@repo/db";
import { Router } from "express"; import { Router } from "express";
import { io } from "../index"; import { io } from "../index";
import { aircraftPatches } from "modules/prometheus";
const router: Router = Router(); const router: Router = Router();
@@ -91,7 +90,6 @@ router.patch("/:id", async (req, res) => {
}, },
}); });
} }
aircraftPatches.inc();
res.json(updatedConnectedAircraft); res.json(updatedConnectedAircraft);
// When change is only the estimated logout time, we don't need to emit an event // When change is only the estimated logout time, we don't need to emit an event
if (Object.keys(aircraftUpdate).length === 1 && aircraftUpdate.esimatedLogoutTime) return; if (Object.keys(aircraftUpdate).length === 1 && aircraftUpdate.esimatedLogoutTime) return;