@xuda.io/ai_module 1.1.4489 → 1.1.4490

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 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4391,6 +4391,9 @@ const chat_email = async function (req, job_id, headers) {
4391
4391
 
4392
4392
  const email_module = await import(`${module_path}/email_module/index.mjs`);
4393
4393
  const email_ret = email_module.sendEmailFromAccount(email_account_doc, to, subject, text, null, attachments);
4394
+ if (!email_ret.result) {
4395
+ throw new Error('error sending email');
4396
+ }
4394
4397
  }
4395
4398
 
4396
4399
  let sender_conversation_doc = await db_module.get_app_couch_doc_native(sender_app_id, conversation_id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4489",
3
+ "version": "1.1.4490",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",