fixed fms status

This commit is contained in:
PxlLoewe
2025-07-08 18:23:21 -07:00
parent 44abbc57b6
commit e9c63605ce

View File

@@ -45,7 +45,7 @@ export const PUT = async (req: Request) => {
}); });
if (!activeAircraft) { if (!activeAircraft) {
return Response.json({ message: "No active aircraft found" }, { status: 204 }); return Response.json({ message: "No active aircraft found" }, { status: 200 });
} }
await prisma.connectedAircraft.update({ await prisma.connectedAircraft.update({
@@ -65,7 +65,7 @@ export const PUT = async (req: Request) => {
}); });
if (activeAircraft.posLat === position.lat && activeAircraft.posLng === position.lng) { if (activeAircraft.posLat === position.lat && activeAircraft.posLng === position.lng) {
return Response.json({ message: "Position has not changed" }, { status: 204 }); return Response.json({ message: "Position has not changed" }, { status: 200 });
} }
const positionLog = await prisma.positionLog.create({ const positionLog = await prisma.positionLog.create({