@xuda.io/ai_module 1.1.4496 → 1.1.4498
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4389,7 +4389,10 @@ const chat_email = async function (req, job_id, headers) {
|
|
|
4389
4389
|
throw new Error('not an contact conversation');
|
|
4390
4390
|
}
|
|
4391
4391
|
const contact_id = sender_conversation_doc.reference_id;
|
|
4392
|
-
|
|
4392
|
+
const contact_info = await account_module.get_contact_info(uid, null, contact_id);
|
|
4393
|
+
if (!contact_info.email) {
|
|
4394
|
+
throw new Error('empty contact email');
|
|
4395
|
+
}
|
|
4393
4396
|
let sent_email_result = {};
|
|
4394
4397
|
|
|
4395
4398
|
// send an email by user invocation
|