@xuda.io/ai_module 1.1.3577 → 1.1.3579

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 +4 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1765,7 +1765,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1765
1765
 
1766
1766
  switch (filter_type) {
1767
1767
  case 'archived': {
1768
- opt.selector.stat = 0;
1768
+ opt.selector.stat = 5;
1769
1769
  break;
1770
1770
  }
1771
1771
  case 'shared': {
@@ -2317,7 +2317,7 @@ export const get_ai_agents = async function (req, job_id, headers) {
2317
2317
 
2318
2318
  switch (filter_type) {
2319
2319
  case 'archived': {
2320
- opt.selector.stat = 0;
2320
+ opt.selector.stat = 5;
2321
2321
  break;
2322
2322
  }
2323
2323
  case 'shared': {
@@ -2475,7 +2475,7 @@ export const archive_ai_agent = async function (req) {
2475
2475
  const app_id = await account_module.get_account_default_project_id(uid);
2476
2476
  try {
2477
2477
  let agent_doc = await db_module.get_app_couch_doc_native(app_id, agent_id);
2478
- agent_doc.stat = 1;
2478
+ agent_doc.stat = 5;
2479
2479
  agent_doc.ts = Date.now();
2480
2480
  const save_ret = await db_module.save_app_couch_doc(app_id, agent_doc);
2481
2481
 
@@ -2594,7 +2594,7 @@ export const get_apps = async function (req, job_id, headers) {
2594
2594
 
2595
2595
  switch (filter_type) {
2596
2596
  case 'archived': {
2597
- opt.selector.stat = 0;
2597
+ opt.selector.stat = 5;
2598
2598
  break;
2599
2599
  }
2600
2600
  case 'shared': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3577",
3
+ "version": "1.1.3579",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",