Shun Miyazawa пре 1 година
родитељ
комит
51ba4d6b33
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      apps/app/src/features/openai/server/routes/update-ai-assistant.ts

+ 1 - 1
apps/app/src/features/openai/server/routes/update-ai-assistant.ts

@@ -122,7 +122,7 @@ export const updateAiAssistantsFactory: UpdateAiAssistantsFactory = (crowi) => {
 
 
       try {
       try {
         const openaiService = getOpenaiService();
         const openaiService = getOpenaiService();
-        const updatedAiAssistant = await openaiService?.updateAiAssistant(user._id, id, {});
+        const updatedAiAssistant = await openaiService?.updateAiAssistant(user._id, id, req.body);
 
 
         return res.apiv3({ updatedAiAssistant });
         return res.apiv3({ updatedAiAssistant });
       }
       }