@xuda.io/ai_module 1.1.4142 → 1.1.4143
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 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1698,15 +1698,18 @@ export const submit_agentic_studio_chat_gpt_prompt = async function (req) {
|
|
|
1698
1698
|
export const get_chat_conversation = async function (req) {
|
|
1699
1699
|
let { conversation_id, order = 'asc', limit, after, _id, uid } = req;
|
|
1700
1700
|
|
|
1701
|
+
const account_profile_info = await account_module.get_active_account_profile_info(uid);
|
|
1702
|
+
|
|
1701
1703
|
if (_id) {
|
|
1702
|
-
const app_id = await account_module.get_account_default_project_id(uid);
|
|
1703
|
-
let data = await db_module.get_app_couch_doc(app_id, _id);
|
|
1704
|
+
// const app_id = await account_module.get_account_default_project_id(uid);
|
|
1705
|
+
let data = await db_module.get_app_couch_doc(account_profile_info.app_id, _id);
|
|
1704
1706
|
return data;
|
|
1705
1707
|
}
|
|
1706
1708
|
|
|
1707
1709
|
try {
|
|
1708
|
-
const project_db = await get_account_project_db(uid);
|
|
1709
|
-
let conversation_doc = await project_db.get(conversation_id);
|
|
1710
|
+
// const project_db = await get_account_project_db(uid);
|
|
1711
|
+
// let conversation_doc = await project_db.get(conversation_id);
|
|
1712
|
+
let conversation_doc = await db_module.get_app_couch_doc(account_profile_info.app_id, conversation_id);
|
|
1710
1713
|
let reference_doc;
|
|
1711
1714
|
if (conversation_doc.shared_from_uid) {
|
|
1712
1715
|
reference_doc = _.cloneDeep(conversation_doc);
|