@xuda.io/ai_module 1.1.3922 → 1.1.3924

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 +3 -3
  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 = 5, skip, conversation_id } = req;
1725
+ let { uid, reference_id, _id, search, filter_type = 'all', conversation_type, limit, skip, conversation_id } = req;
1726
1726
 
1727
1727
  const get_conversation_background = function (doc) {
1728
1728
  let deg = 145;
@@ -2795,7 +2795,7 @@ export const get_apps = async function (req, job_id, headers) {
2795
2795
 
2796
2796
  const app_id = await account_module.get_account_default_project_id(uid);
2797
2797
 
2798
- let user_apps = { docs: [] };
2798
+ let user_apps = { docs: [], total_docs: 0 };
2799
2799
  if (filter_type !== 'pending') {
2800
2800
  user_apps = await db_module.find_app_couch_query(app_id, opt);
2801
2801
  }
@@ -2805,7 +2805,7 @@ export const get_apps = async function (req, job_id, headers) {
2805
2805
  ///////////////
2806
2806
  ////// FROM - IN
2807
2807
 
2808
- let requests_from = { docs: [] };
2808
+ let requests_from = { docs: [], total_docs: 0 };
2809
2809
  if (!mini_app_id) {
2810
2810
  if (filter_type === 'pending') {
2811
2811
  const from_opt = { selector: { docType: 'team_request', access_type: 'miniapp', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'sender_account_info.email', 'team_req_from_uid', 'share_item_id'] };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3922",
3
+ "version": "1.1.3924",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",