Skip to content

Commit

Permalink
Fix updating dirty objects
Browse files Browse the repository at this point in the history
  • Loading branch information
everysoftware committed Dec 21, 2024
1 parent facb69e commit ae6314b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enterprise/unit_of_work.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def commit(self) -> None:
self._source.insert(model.__class__.__name__, model.__dict__)

for model in self._dirty:
self._source.insert(model.__class__.__name__, model.__dict__)
self._source.update(model.__class__.__name__, model.__dict__)

for model in self._removed:
self._source.delete(model.__class__.__name__, model.id)
Expand Down

0 comments on commit ae6314b

Please sign in to comment.