@xuda.io/ai_module 1.1.4047 → 1.1.4049

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 +5 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4386,7 +4386,7 @@ const chat_note = async function (req, job_id, headers) {
4386
4386
  // const receiver_app_id = await account_module.get_account_default_project_id(receiver_contact_doc.contact_uid);
4387
4387
  // let receiver_conversation_doc = await db_module.get_app_couch_doc_native(receiver_app_id, conversation_id);
4388
4388
 
4389
- let sender_contact_doc = await account_module.get_contact_info(uid, null, conversation_doc.reference_id);
4389
+ // let sender_contact_doc = await account_module.get_contact_info(uid, null, conversation_doc.reference_id);
4390
4390
 
4391
4391
  account_module.ts_contact(conversation_doc.reference_id);
4392
4392
 
@@ -4505,6 +4505,10 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4505
4505
  // let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
4506
4506
  const reference_type = conversation_doc.reference_type;
4507
4507
  const reference_id = conversation_doc.reference_id;
4508
+ if (reference_type === 'contact') {
4509
+ account_module.ts_contact(conversation_doc.reference_id);
4510
+ }
4511
+
4508
4512
  conversation_doc.stat = 2;
4509
4513
  conversation_doc.ts = Date.now();
4510
4514
  await db_module.save_app_couch_doc_native(app_id, conversation_doc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4047",
3
+ "version": "1.1.4049",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",