Skip to content

Commit 7c4be89

Browse files
committed
fix: update model_dump to exclude None values in update_flight_by_id method
1 parent 82d55e6 commit 7c4be89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repositories/flight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def read_flight_by_id(self, flight_id: str) -> Optional[FlightModel]:
2828
@repository_exception_handler
2929
async def update_flight_by_id(self, flight_id: str, flight: FlightModel):
3030
await self.update_by_id(
31-
flight.model_dump(exclude_none=False), data_id=flight_id
31+
flight.model_dump(exclude_none=True), data_id=flight_id
3232
)
3333

3434
@repository_exception_handler

0 commit comments

Comments
 (0)