@xuda.io/ai_module 1.1.3937 → 1.1.3939

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 +1 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1858,9 +1858,6 @@ export const get_ai_chats = async function (req, job_id, headers) {
1858
1858
  }
1859
1859
  }
1860
1860
 
1861
- // const ai_chats = await db_module.get_app_couch_view(app_id, 'ai_chat_list', {
1862
- // key: reference_id || '',
1863
- // });
1864
1861
  let ai_chats = { docs: [], total_docs: 0 };
1865
1862
 
1866
1863
  if (filter_type !== 'pending') {
@@ -2867,7 +2864,7 @@ export const get_apps = async function (req, job_id, headers) {
2867
2864
  docs.push(doc);
2868
2865
  }
2869
2866
 
2870
- return { code: 2, data: { docs: [...requests_from.docs, ...docs], total_docs: user_apps.total_docs + requests_from.total_docs.total_docs } };
2867
+ return { code: 2, data: { docs: [...requests_from.docs, ...docs], total_docs: user_apps.total_docs + requests_from.total_docs } };
2871
2868
  } catch (err) {
2872
2869
  return { code: -11, data: err.message };
2873
2870
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3937",
3
+ "version": "1.1.3939",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",