@xuda.io/ai_module 1.1.5091 → 1.1.5093

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
@@ -1168,7 +1168,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1168
1168
  return data;
1169
1169
  }
1170
1170
 
1171
- const chat_conversation_count = async function (contact_id, conversation_id) {
1171
+ const chat_conversation_count = async function () {
1172
1172
  const counts_ret = await db_module.get_app_couch_view(account_profile_info.app_id, 'chat_conversation_item_counts', {
1173
1173
  reduce: true,
1174
1174
  group_level: 999,
@@ -1334,7 +1334,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1334
1334
  // const profile_id = account_profile_info.is_main ? 'all' : account_profile_info.account_profile_id;
1335
1335
  // const conv_type = conversation_type ? conversation_type : 'all';
1336
1336
 
1337
- const ret = await db_module.get_app_couch_view(account_profile_info.app_id, 'ai_chat_list', {
1337
+ const ret = await db_module.get_app_couch_view(account_profile_info.app_id, 'chat_conversation_list', {
1338
1338
  startkey: [stat_type, reference_id, 0],
1339
1339
  endkey: [stat_type, reference_id, 9999999999999],
1340
1340
  limit: parseInt(limit) || 9999,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5091",
3
+ "version": "1.1.5093",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",