@xuda.io/ai_module 1.1.3752 → 1.1.3754

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 +7 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1702,7 +1702,6 @@ export const get_chat_conversation = async function (req) {
1702
1702
 
1703
1703
  if (_id) {
1704
1704
  const app_id = await account_module.get_account_default_project_id(uid);
1705
-
1706
1705
  let data = await db_module.get_app_couch_doc(app_id, _id);
1707
1706
  return data;
1708
1707
  }
@@ -1761,7 +1760,13 @@ export const get_ai_chats = async function (req, job_id, headers) {
1761
1760
  };
1762
1761
 
1763
1762
  try {
1764
- if (_id) return await get_studio_doc({ _id, uid });
1763
+ // if (_id) return await get_studio_doc({ _id, uid });
1764
+
1765
+ if (_id) {
1766
+ const app_id = await account_module.get_account_default_project_id(uid);
1767
+ let data = await db_module.get_app_couch_doc(app_id, _id);
1768
+ return data;
1769
+ }
1765
1770
 
1766
1771
  let opt = {
1767
1772
  selector: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3752",
3
+ "version": "1.1.3754",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",