Added HPG validation
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user