Skip to content

Commit 82ea8bb

Browse files
committed
MNT: updating objects with null initialization on edit
1 parent 971f7ac commit 82ea8bb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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=True), data_id=flight_id
31+
flight.model_dump(exclude_none=False), data_id=flight_id
3232
)
3333

3434
@repository_exception_handler

src/repositories/motor.py

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

3434
@repository_exception_handler

src/repositories/rocket.py

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

3434
@repository_exception_handler

0 commit comments

Comments
 (0)