Skip to content

Commit

Permalink
Merge pull request #355 from uhh-lt/Bugfix-update_project
Browse files Browse the repository at this point in the history
Bugfix update_project api route
  • Loading branch information
floschne authored Feb 14, 2024
2 parents 1f1298f + e0e0501 commit 2ccfebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/app/core/data/crud/crud_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def update(
db_obj = self.read(db=db, id=id)
before_state = self._get_action_state_from_orm(db_obj=db_obj)

obj_data = jsonable_encoder(db_obj)
obj_data = jsonable_encoder(db_obj.as_dict())
update_data = update_dto.model_dump(exclude_unset=True)
for field in obj_data:
if field in update_data:
Expand Down

0 comments on commit 2ccfebe

Please sign in to comment.