Skip to content

Commit 1374ed4

Browse files
committed
refactor: update chat record processing to include chat count updates
1 parent a0e2403 commit 1374ed4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/application/serializers/application_chat_record.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ def post_improve(self, instance: Dict):
304304
# 批量保存聊天记录
305305
ChatRecord.objects.bulk_update(chat_record_list, ['improve_paragraph_id_list'])
306306
update_document_char_length(document_id)
307+
for chat_id in chat_ids:
308+
ChatCountSerializer(data={'chat_id': chat_id}).update_chat()
307309

308310
return paragraph_ids, knowledge_id
309311

0 commit comments

Comments
 (0)