@xuda.io/ai_module 1.1.5040 → 1.1.5042

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 +4 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1346,12 +1346,12 @@ export const get_ai_chats = async function (req, job_id, headers) {
1346
1346
  }
1347
1347
 
1348
1348
  const profile_id = account_profile_info.is_main ? account_profile_info.account_profile_id : 'all';
1349
- const convType = conversation_type ? conversation_type : 'all';
1349
+ const conv_type = conversation_type ? conversation_type : 'all';
1350
1350
  const mine_uid = filter_type === 'mine' ? uid : 'all';
1351
1351
 
1352
- const ret = await db_module.get_app_couch_view(account_profile_info.app_id, 'ai_chat_list', {
1353
- startkey: [profile_id, stat_type, convType, reference_id, mine_uid, 0],
1354
- endkey: [profile_id, stat_type, convType, reference_id, mine_uid, 9999999999999],
1352
+ const ret = await db_module.get_app_couch_view(account_profile_info.app_id, 'by_profile', {
1353
+ startkey: [profile_id, stat_type, conv_type, reference_id, mine_uid, 0],
1354
+ endkey: [profile_id, stat_type, conv_type, reference_id, mine_uid, 9999999999999],
1355
1355
  limit: parseInt(limit) || 9999,
1356
1356
  skip: parseInt(skip) || 0,
1357
1357
  include_docs: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5040",
3
+ "version": "1.1.5042",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",