Fix aircraft updating

This commit is contained in:
april
2024-01-11 14:54:14 -06:00
parent 03ea9d0235
commit 4122521aa3
2 changed files with 12 additions and 5 deletions

View File

@@ -139,7 +139,7 @@ async def update_aircraft(aircraft_id: str, aircraft_body: AircraftCreateSchema,
logger.info("Attempted access to unauthorized aircraft by %s", user.username)
raise HTTPException(403, "Unauthorized access")
updated_aircraft_id = await db.update_aircraft(aircraft_body, aircraft_id)
updated_aircraft_id = await db.update_aircraft(aircraft_body, aircraft_id, user.id)
return {"id": str(updated_aircraft_id)}