@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.
- package/index.mjs +12 -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
|
-
|
|
1766
|
-
|
|
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) {
|