@xuda.io/ai_module 1.1.5539 → 1.1.5540

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 +7 -6
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4053,12 +4053,13 @@ const chat_email = async function (req, job_id, headers) {
4053
4053
 
4054
4054
  const save_ret = await db_module.save_app_couch_doc(sender_app_id, out_conversation_item_obj);
4055
4055
 
4056
- if (perform_ai_execution) {
4057
- try {
4058
- await attachment_handler(uid, sender_app_id, conversation_id, attachments, account_profile_info, conversation_doc.date_created_ts);
4059
- } catch (err) {
4060
- console.error('attachment_handler failed after email save', err);
4061
- }
4056
+ if (perform_ai_execution) {
4057
+ try {
4058
+ await attachment_handler(uid, sender_app_id, conversation_id, attachments, account_profile_info, conversation_doc.date_created_ts);
4059
+ } catch (err) {
4060
+ console.error('attachment_handler failed after email save', err);
4061
+ }
4062
+ }
4062
4063
 
4063
4064
  if (conversation_doc.reference_type === 'contacts' && from_mailbox) {
4064
4065
  auto_response(uid, profile_id, conversation_id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5539",
3
+ "version": "1.1.5540",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",