@xuda.io/ai_module 1.1.3549 → 1.1.3551

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 +6 -8
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1763,7 +1763,12 @@ export const get_ai_chats = async function (req, job_id, headers) {
1763
1763
  };
1764
1764
 
1765
1765
  switch (filter_type) {
1766
- case '': {
1766
+ case 'archived': {
1767
+ opt.selector.stat = 0;
1768
+ break;
1769
+ }
1770
+ case 'shared': {
1771
+ opt.selector.shared_from_uid = { $gt: null };
1767
1772
  break;
1768
1773
  }
1769
1774
 
@@ -1771,10 +1776,6 @@ export const get_ai_chats = async function (req, job_id, headers) {
1771
1776
  break;
1772
1777
  }
1773
1778
 
1774
- if (archived) {
1775
- opt.selector.stat = 0;
1776
- }
1777
-
1778
1779
  if (conversation_type) {
1779
1780
  opt.selector.conversation_type = conversation_type;
1780
1781
  }
@@ -1782,9 +1783,6 @@ export const get_ai_chats = async function (req, job_id, headers) {
1782
1783
  if (reference_id) {
1783
1784
  opt.selector.reference_id = reference_id;
1784
1785
  }
1785
- if (shared) {
1786
- opt.selector.shared_from_uid = { $gt: null };
1787
- }
1788
1786
 
1789
1787
  if (search) {
1790
1788
  opt.selector = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3549",
3
+ "version": "1.1.3551",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",