Skip to content

Commit

Permalink
Bug: SQL Alchemy repository updated vs updated_at column reference.
Browse files Browse the repository at this point in the history
Fixes #1905
  • Loading branch information
cofin committed Jul 1, 2023
1 parent ec06e9a commit 71746e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litestar/contrib/sqlalchemy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def touch_updated_timestamp(session: Session, *_: Any) -> None:
"""
for instance in session.dirty:
if hasattr(instance, "updated_at"):
instance.updated = (datetime.now(timezone.utc),)
instance.updated_at = datetime.now(timezone.utc)


@runtime_checkable
Expand Down

0 comments on commit 71746e0

Please sign in to comment.