fix: savechat.feat: extract flow

This commit is contained in:
archer
2023-08-01 21:51:54 +08:00
parent 58153306c5
commit ae95a8908e
18 changed files with 334 additions and 158 deletions

View File

@@ -36,7 +36,7 @@ export async function saveChat({
if (chatHistory) {
promise.push(
Chat.findOneAndUpdate(
{ chatId },
{ chatId, userId },
{
$push: {
content: {