@xuda.io/ai_module 1.1.4146 → 1.1.4147
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4256,9 +4256,9 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
|
|
|
4256
4256
|
let { conversation_id } = req;
|
|
4257
4257
|
try {
|
|
4258
4258
|
if (!conversation_id) throw new Error('missing conversation_id');
|
|
4259
|
-
|
|
4259
|
+
const account_profile_info = await account_module.get_active_account_profile_info(uid);
|
|
4260
4260
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
4261
|
-
let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
|
|
4261
|
+
let conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_id);
|
|
4262
4262
|
req.conversation_doc = conversation_doc;
|
|
4263
4263
|
let ret;
|
|
4264
4264
|
if (conversation_doc.reference_type === 'contacts') {
|