XPlane Plugin anzeige auf tracker
This commit is contained in:
@@ -21,9 +21,10 @@ export const PUT = async (req: Request) => {
|
||||
if (!session && !payload) return Response.json({ message: "Unauthorized" }, { status: 401 });
|
||||
|
||||
const userId = session?.user.id || payload.id;
|
||||
const { position, h145 } = (await req.json()) as {
|
||||
const { position, h145, xPlanePluginActive } = (await req.json()) as {
|
||||
position: PositionLog;
|
||||
h145: boolean;
|
||||
xPlanePluginActive: boolean;
|
||||
};
|
||||
if (!position) {
|
||||
return Response.json({ message: "Missing id or position" });
|
||||
@@ -61,6 +62,7 @@ export const PUT = async (req: Request) => {
|
||||
posHeading: position.heading,
|
||||
posSpeed: position.speed,
|
||||
posH145active: h145,
|
||||
posXplanePluginActive: xPlanePluginActive,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user