fixed fms status
This commit is contained in:
@@ -45,7 +45,7 @@ export const PUT = async (req: Request) => {
|
||||
});
|
||||
|
||||
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({
|
||||
@@ -65,7 +65,7 @@ export const PUT = async (req: Request) => {
|
||||
});
|
||||
|
||||
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({
|
||||
|
||||
Reference in New Issue
Block a user