mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor: migrate high-risk write transactions
This commit is contained in:
+4
-1
@@ -307,7 +307,10 @@ def get_agent_chat_service(
|
||||
db: AsyncSession = Depends(get_async_db),
|
||||
) -> AgentChatService:
|
||||
"""组装 Agent 会话历史查询和删除服务。"""
|
||||
return AgentChatService(repository=_repository("agent_chat", db))
|
||||
return AgentChatService(
|
||||
repository=_repository("agent_chat", db),
|
||||
unit_of_work=_transaction("async", db),
|
||||
)
|
||||
|
||||
|
||||
def get_mediaserver_query_service(
|
||||
|
||||
Reference in New Issue
Block a user