@xuda.io/ai_module 1.1.4685 → 1.1.4687
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1978,7 +1978,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1978
1978
|
|
|
1979
1979
|
doc.privilege = doc.uid === uid || doc?.account_profile_info?.uid === uid;
|
|
1980
1980
|
|
|
1981
|
-
if (reference_id) {
|
|
1981
|
+
if (reference_id && doc.reference_type === 'contact') {
|
|
1982
1982
|
// only valid for contacts conversation
|
|
1983
1983
|
doc.background = get_conversation_background(doc);
|
|
1984
1984
|
}
|
|
@@ -3253,6 +3253,7 @@ export const create_ai_agent = async function (req, job_id, headers) {
|
|
|
3253
3253
|
};
|
|
3254
3254
|
|
|
3255
3255
|
export const update_ai_agent_properties = async function (doc, app_id, uid, fields_changed = {}) {
|
|
3256
|
+
debugger;
|
|
3256
3257
|
const db_doc = await db_module.get_app_couch_doc_native(app_id, doc._id);
|
|
3257
3258
|
// const { account_profile_info } = doc.studio_meta;
|
|
3258
3259
|
const account_profile_info = await account_module.get_active_account_profile_info(uid);
|