@xuda.io/ai_module 1.1.3909 → 1.1.3911

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 +5 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1891,6 +1891,11 @@ export const get_ai_chats = async function (req, job_id, headers) {
1891
1891
  if (!limit || conversation_id) {
1892
1892
  ai_chats.total_docs = ai_chats.docs.length;
1893
1893
  } else {
1894
+ delete opt.sort;
1895
+ delete opt.skip;
1896
+ opt.limit = 9999;
1897
+ opt.fields = ['_id'];
1898
+
1894
1899
  const counter = await db_module.find_app_couch_query(app_id, opt);
1895
1900
  }
1896
1901
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3909",
3
+ "version": "1.1.3911",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",