@xuda.io/ai_module 1.1.3920 → 1.1.3922

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
@@ -1722,7 +1722,7 @@ export const get_chat_conversation = async function (req) {
1722
1722
  };
1723
1723
 
1724
1724
  export const get_ai_chats = async function (req, job_id, headers) {
1725
- let { uid, reference_id, _id, search, filter_type = 'all', conversation_type, limit, skip, conversation_id } = req;
1725
+ let { uid, reference_id, _id, search, filter_type = 'all', conversation_type, limit = 5, skip, conversation_id } = req;
1726
1726
 
1727
1727
  const get_conversation_background = function (doc) {
1728
1728
  let deg = 145;
@@ -1854,6 +1854,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1854
1854
 
1855
1855
  requests_from.docs.push(doc);
1856
1856
  }
1857
+ requests_from.total_docs = requests_from.docs.length;
1857
1858
  }
1858
1859
  }
1859
1860
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3920",
3
+ "version": "1.1.3922",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",