@xuda.io/ai_module 1.1.3539 → 1.1.3541

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 -6
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1749,15 +1749,21 @@ export const get_ai_chats = async function (req, job_id, headers) {
1749
1749
  return ret;
1750
1750
  };
1751
1751
 
1752
- let opt = {
1753
- docType: 'chat_conversation',
1754
- stat: 3,
1755
- reference_id: '',
1756
- };
1757
-
1758
1752
  try {
1759
1753
  if (_id) return await get_ai_doc({ _id, uid });
1760
1754
 
1755
+ let opt = {
1756
+ selector: {
1757
+ docType: 'chat_conversation',
1758
+ stat: 3,
1759
+ reference_id: '',
1760
+ },
1761
+ };
1762
+
1763
+ if (archived) {
1764
+ opt.selector = 1;
1765
+ }
1766
+
1761
1767
  const app_id = await account_module.get_account_default_project_id(uid);
1762
1768
 
1763
1769
  ////// FROM - IN
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3539",
3
+ "version": "1.1.3541",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",