@xuda.io/ai_module 1.1.3567 → 1.1.3569

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 +11 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2583,9 +2583,15 @@ export const get_apps = async function (req, job_id, headers) {
2583
2583
  //////////////
2584
2584
 
2585
2585
  const app_id = await account_module.get_account_default_project_id(uid);
2586
- const user_apps = await db_module.get_app_couch_view(app_id, 'studio_mini_apps', {
2587
- include_docs: true,
2588
- });
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
+
2589
2595
  ///////////////
2590
2596
  ////// FROM - IN
2591
2597
  let requests_from = { docs: [] };
@@ -2620,8 +2626,8 @@ export const get_apps = async function (req, job_id, headers) {
2620
2626
  //////////////
2621
2627
 
2622
2628
  let docs = [];
2623
- for (let row of user_apps.rows) {
2624
- let doc = row.value;
2629
+ for (let doc of user_apps.docs) {
2630
+ // let doc = row.value;
2625
2631
  doc._id = row.id;
2626
2632
 
2627
2633
  if (!doc?.studio_meta?.agent_image?.length && (!doc?.studio_meta?.thumbnail_request_ts || Date.now() - doc?.studio_meta?.thumbnail_request_ts > 120000)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3567",
3
+ "version": "1.1.3569",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",