@xuda.io/ai_module 1.1.5056 → 1.1.5057
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1342,11 +1342,11 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1342
1342
|
for (let val of ret.rows || []) {
|
|
1343
1343
|
let _conversation = conversations[val.value.conversation_id];
|
|
1344
1344
|
|
|
1345
|
-
if (!
|
|
1346
|
-
|
|
1345
|
+
if (!conversations[val.value.conversation_id]) {
|
|
1346
|
+
conversations[val.value.conversation_id][val.value.conversation_id] = {};
|
|
1347
1347
|
}
|
|
1348
1348
|
|
|
1349
|
-
|
|
1349
|
+
conversations[val.value.conversation_id][val.value.type] = val.doc;
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
1352
|
return ret;
|