@xuda.io/ai_module 1.1.4049 → 1.1.4051

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 +3 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4267,6 +4267,7 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
4267
4267
  req.conversation_doc = conversation_doc;
4268
4268
 
4269
4269
  if (conversation_doc.reference_type === 'contacts') {
4270
+ account_module.ts_contact(conversation_doc.reference_id);
4270
4271
  if (conversation_doc.conversation_type === 'note') {
4271
4272
  return await chat_note(req, job_id, headers);
4272
4273
  } else {
@@ -4388,7 +4389,7 @@ const chat_note = async function (req, job_id, headers) {
4388
4389
 
4389
4390
  // let sender_contact_doc = await account_module.get_contact_info(uid, null, conversation_doc.reference_id);
4390
4391
 
4391
- account_module.ts_contact(conversation_doc.reference_id);
4392
+ // account_module.ts_contact(conversation_doc.reference_id);
4392
4393
 
4393
4394
  const sender_app_id = await account_module.get_account_default_project_id(uid);
4394
4395
  let sender_conversation_doc = await db_module.get_app_couch_doc_native(sender_app_id, conversation_id);
@@ -4506,7 +4507,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4506
4507
  const reference_type = conversation_doc.reference_type;
4507
4508
  const reference_id = conversation_doc.reference_id;
4508
4509
  if (reference_type === 'contact') {
4509
- account_module.ts_contact(conversation_doc.reference_id);
4510
+ account_module.ts_contact(reference_id);
4510
4511
  }
4511
4512
 
4512
4513
  conversation_doc.stat = 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4049",
3
+ "version": "1.1.4051",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",