@xuda.io/ai_module 1.1.3566 → 1.1.3568

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 +14 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2567,6 +2567,11 @@ export const get_apps = async function (req, job_id, headers) {
2567
2567
  $regex: `(?i)${search}`,
2568
2568
  },
2569
2569
  },
2570
+ {
2571
+ 'properties.description': {
2572
+ $regex: `(?i)${search}`,
2573
+ },
2574
+ },
2570
2575
  {
2571
2576
  _id: {
2572
2577
  $regex: `(?i)${search}`,
@@ -2578,9 +2583,15 @@ export const get_apps = async function (req, job_id, headers) {
2578
2583
  //////////////
2579
2584
 
2580
2585
  const app_id = await account_module.get_account_default_project_id(uid);
2581
- const user_apps = await db_module.get_app_couch_view(app_id, 'studio_mini_apps', {
2582
- include_docs: true,
2583
- });
2586
+ // const user_apps = await db_module.get_app_couch_view(app_id, 'studio_mini_apps', {
2587
+ // include_docs: true,
2588
+ // });
2589
+
2590
+ let user_apps = [];
2591
+ if (filter_type !== 'pending') {
2592
+ user_apps = await db_module.find_app_couch_query(app_id, opt);
2593
+ }
2594
+
2584
2595
  ///////////////
2585
2596
  ////// FROM - IN
2586
2597
  let requests_from = { docs: [] };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3566",
3
+ "version": "1.1.3568",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",