@xuda.io/ai_module 1.1.4048 → 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 +4 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -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.4048",
3
+ "version": "1.1.4049",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",