@xuda.io/ai_module 1.1.5009 → 1.1.5011

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 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1125,7 +1125,7 @@ export const get_chat_conversation = async function (req) {
1125
1125
  };
1126
1126
 
1127
1127
  export const get_ai_chats = async function (req, job_id, headers) {
1128
- let { uid, reference_id, _id, search, filter_type = 'all', conversation_type, limit, skip, conversation_id, profile_id } = req;
1128
+ let { uid, reference_id = '', _id, search, filter_type = 'all', conversation_type, limit, skip, conversation_id, profile_id } = req;
1129
1129
 
1130
1130
  const account_profile_info = await get_active_account_profile_info(uid, profile_id);
1131
1131
 
@@ -1292,6 +1292,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1292
1292
  limit: limit || 9999,
1293
1293
  skip: skip || 0,
1294
1294
  include_docs: true,
1295
+ descending: reference_id ? false : true,
1295
1296
  });
1296
1297
 
1297
1298
  debugger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5009",
3
+ "version": "1.1.5011",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",