@xuda.io/ai_module 1.1.3753 → 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.
- package/index.mjs +7 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1760,7 +1760,13 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1760
1760
|
};
|
|
1761
1761
|
|
|
1762
1762
|
try {
|
|
1763
|
-
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
|
+
}
|
|
1764
1770
|
|
|
1765
1771
|
let opt = {
|
|
1766
1772
|
selector: {
|