@xuda.io/ai_module 1.1.5054 → 1.1.5056

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.
Files changed (2) hide show
  1. package/index.mjs +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1336,11 +1336,11 @@ export const get_ai_chats = async function (req, job_id, headers) {
1336
1336
  include_docs: true,
1337
1337
  descending: false,
1338
1338
  });
1339
-
1339
+ debugger;
1340
1340
  let conversations = {};
1341
1341
  let docs = [];
1342
1342
  for (let val of ret.rows || []) {
1343
- const _conversation = conversations[val.value.conversation_id];
1343
+ let _conversation = conversations[val.value.conversation_id];
1344
1344
 
1345
1345
  if (!_conversation) {
1346
1346
  _conversation[val.value.conversation_id] = {};
@@ -1348,7 +1348,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1348
1348
 
1349
1349
  _conversation[val.value.type] = val.doc;
1350
1350
  }
1351
- debugger;
1351
+
1352
1352
  return ret;
1353
1353
  };
1354
1354
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5054",
3
+ "version": "1.1.5056",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",