@xuda.io/ai_module 1.1.3548 → 1.1.3550

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 +12 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1762,8 +1762,18 @@ export const get_ai_chats = async function (req, job_id, headers) {
1762
1762
  skip: skip || 0,
1763
1763
  };
1764
1764
 
1765
- if (archived) {
1766
- opt.selector.stat = 1;
1765
+ switch (filter_type) {
1766
+ case 'archived': {
1767
+ opt.selector.stat = 0;
1768
+ break;
1769
+ }
1770
+ case 'shared': {
1771
+ opt.selector.shared_from_uid = { $gt: null };
1772
+ break;
1773
+ }
1774
+
1775
+ default:
1776
+ break;
1767
1777
  }
1768
1778
 
1769
1779
  if (conversation_type) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3548",
3
+ "version": "1.1.3550",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",