@xuda.io/ai_module 1.1.5558 → 1.1.5559

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 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3907,7 +3907,7 @@ const contact_chat_conversation = async function (req, job_id, headers) {
3907
3907
  await db_module.save_app_couch_doc_native(receiver_app_id, receiver_conversation_doc);
3908
3908
  if (conversation_doc.reference_type === 'contacts') {
3909
3909
  const receiver_account_profile_info = await get_active_account_profile_info(conversation_doc.uid);
3910
- auto_response(receiver_account_profile_info.uid, receiver_account_profile_info.profile_id, conversation_doc.reference_id);
3910
+ auto_response(receiver_account_profile_info.uid, receiver_account_profile_info.profile_id, conversation_doc.reference_id, 'chat');
3911
3911
  }
3912
3912
 
3913
3913
  await db_module.save_app_couch_doc_native(sender_app_id, sender_conversation_doc);
@@ -4105,7 +4105,7 @@ const chat_email = async function (req, job_id, headers) {
4105
4105
  }
4106
4106
 
4107
4107
  if (conversation_doc.reference_type === 'contacts' && from_mailbox) {
4108
- auto_response(uid, profile_id, conversation_doc.reference_id, conversation_id);
4108
+ auto_response(uid, profile_id, conversation_doc.reference_id, conversation_id, 'email');
4109
4109
  }
4110
4110
 
4111
4111
  return save_ret;
@@ -5165,7 +5165,7 @@ const add_conversation_item = async function (uid, profile_id, conversation_id,
5165
5165
  }
5166
5166
  };
5167
5167
 
5168
- const auto_response = async function (uid, profile_id, contact_id, conversation_id) {
5168
+ const auto_response = async function (uid, profile_id, contact_id, conversation_type) {
5169
5169
  try {
5170
5170
  const account_profile_info = await get_active_account_profile_info(uid, profile_id);
5171
5171
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5558",
3
+ "version": "1.1.5559",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",