@xuda.io/ai_module 1.1.4118 → 1.1.4120

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 +7 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2393,7 +2393,7 @@ const get_user_ai_agents = async function (uid) {
2393
2393
 
2394
2394
  export const get_ai_agents = async function (req, job_id, headers) {
2395
2395
  let { uid, _id, search, filter_type = 'all', limit, skip, agent_id } = req;
2396
- debugger;
2396
+
2397
2397
  try {
2398
2398
  if (_id) {
2399
2399
  let doc_ret = await get_studio_doc({ _id, uid });
@@ -2524,7 +2524,12 @@ export const get_ai_agents = async function (req, job_id, headers) {
2524
2524
  // shares
2525
2525
  if (doc.studio_meta.shared_from_uid && doc.studio_meta.shared_from_app_id) {
2526
2526
  reference_doc = _.cloneDeep(doc);
2527
- doc = await db_module.get_app_couch_doc_native(reference_doc.studio_meta.shared_from_app_id, reference_doc.studio_meta.share_item_id);
2527
+ try {
2528
+ doc = await db_module.get_app_couch_doc_native(reference_doc.studio_meta.shared_from_app_id, reference_doc.studio_meta.share_item_id);
2529
+ } catch (error) {
2530
+ continue;
2531
+ }
2532
+
2528
2533
  doc.reference_doc = reference_doc;
2529
2534
  doc.stat = reference_doc.stat;
2530
2535
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4118",
3
+ "version": "1.1.4120",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",