removed AircraftID, Added NExtcloud permission
This commit is contained in:
@@ -44,9 +44,11 @@ export const PUT = async (req: Request) => {
|
||||
if (!activeAircraft) {
|
||||
return Response.json({ message: "No active aircraft found" }, { status: 400 });
|
||||
}
|
||||
|
||||
const positionLog = await prisma.positionLog.create({
|
||||
data: {
|
||||
...position,
|
||||
connectedAircraftId: activeAircraft.id,
|
||||
userId,
|
||||
},
|
||||
});
|
||||
@@ -64,9 +66,6 @@ export const PUT = async (req: Request) => {
|
||||
posHeading: positionLog.heading,
|
||||
posSpeed: positionLog.speed,
|
||||
posH145active: h145,
|
||||
positionLogIds: {
|
||||
push: positionLog.id,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user