@xuda.io/ai_module 1.1.5097 → 1.1.5099

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 +1 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1359,7 +1359,6 @@ export const get_ai_chats = async function (req, job_id, headers) {
1359
1359
  };
1360
1360
 
1361
1361
  const get_data_view_conversation_items = async function () {
1362
- debugger;
1363
1362
  let stat_type = filter_type === 'archived' ? 'archived' : 'all';
1364
1363
 
1365
1364
  const ret = await db_module.get_app_couch_view(account_profile_info.app_id, 'chat_conversation_list_items', {
@@ -1419,7 +1418,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1419
1418
  let ai_chats = { docs: [], total_docs: 0 };
1420
1419
 
1421
1420
  if (filter_type !== 'pending') {
1422
- if (reference_id && reference_type === 'contacts') {
1421
+ if (reference_id && (reference_type === 'contacts' || reference_type === 'account_profiles')) {
1423
1422
  ai_chats = await get_data_view_conversation_items();
1424
1423
  } else {
1425
1424
  ai_chats = await get_data_find();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5097",
3
+ "version": "1.1.5099",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",