@xuda.io/ai_module 1.1.3746 → 1.1.3747

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 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2725,7 +2725,7 @@ export const install_ai_agent = async function (req) {
2725
2725
  };
2726
2726
 
2727
2727
  export const get_apps = async function (req, job_id, headers) {
2728
- let { uid, _id, search, filter_type = 'all', limit, skip } = req;
2728
+ let { uid, _id, search, filter_type = 'all', limit, skip, mini_app_id } = req;
2729
2729
 
2730
2730
  try {
2731
2731
  if (_id) return await get_ai_doc({ _id, uid });
@@ -2783,6 +2783,10 @@ export const get_apps = async function (req, job_id, headers) {
2783
2783
  ],
2784
2784
  };
2785
2785
  }
2786
+
2787
+ if (mini_app_id) {
2788
+ opt._id = mini_app_id;
2789
+ }
2786
2790
  //////////////
2787
2791
 
2788
2792
  const app_id = await account_module.get_account_default_project_id(uid);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3746",
3
+ "version": "1.1.3747",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",