Преглед на файлове

Fix missing database commit in provider update handler (#24357)

tags/1.8.0
-LAN- преди 2 месеца
родител
ревизия
ad2c541163
No account linked to committer's email address
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      api/events/event_handlers/update_provider_when_message_created.py

+ 1
- 1
api/events/event_handlers/update_provider_when_message_created.py Целия файл

@@ -188,7 +188,7 @@ def _execute_provider_updates(updates_to_perform: list[_ProviderUpdateOperation]

# Use SQLAlchemy's context manager for transaction management
# This automatically handles commit/rollback
with Session(db.engine) as session:
with Session(db.engine) as session, session.begin():
# Use a single transaction for all updates
for update_operation in updates_to_perform:
filters = update_operation.filters

Loading…
Отказ
Запис