@xuda.io/ai_module 1.1.4991 → 1.1.4992

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1334,8 +1334,8 @@ export const get_ai_chats = async function (req, job_id, headers) {
1334
1334
  },
1335
1335
  limit: 1,
1336
1336
  };
1337
- doc.conversation_item = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
1338
-
1337
+ const conversation_item_ret = await db_module.find_app_couch_query(account_profile_info.app_id, opt);
1338
+ doc.conversation_item = conversation_item_ret?.docs?.[0];
1339
1339
  // doc.notifications = 0;
1340
1340
  // doc.interactions = doc?.messages?.length || 0;
1341
1341
  // for (let msg of doc.messages) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4991",
3
+ "version": "1.1.4992",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",