@xuda.io/ai_module 1.1.4048 → 1.1.4050
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 +4 -0
- 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(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);
|