Added HPG validation

This commit is contained in:
PxlLoewe
2025-06-03 13:44:21 -07:00
parent 4acdb48344
commit ebb72c6517
14 changed files with 223 additions and 116 deletions

View File

@@ -24,13 +24,10 @@ export const PUT = async (req: Request) => {
position: PositionLog;
h145: boolean;
};
console.log("position", userId);
if (!position) {
return Response.json({ message: "Missing id or position" });
}
console.log("position", position);
const activeAircraft = await prisma.connectedAircraft.findFirst({
where: {
userId,