@xuda.io/ai_module 1.1.4494 → 1.1.4496
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 +5 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4385,6 +4385,11 @@ const chat_email = async function (req, job_id, headers) {
|
|
|
4385
4385
|
|
|
4386
4386
|
let sender_conversation_doc = await db_module.get_app_couch_doc_native(sender_app_id, conversation_id);
|
|
4387
4387
|
|
|
4388
|
+
if (sender_conversation_doc.reference_type !== 'contacts') {
|
|
4389
|
+
throw new Error('not an contact conversation');
|
|
4390
|
+
}
|
|
4391
|
+
const contact_id = sender_conversation_doc.reference_id;
|
|
4392
|
+
|
|
4388
4393
|
let sent_email_result = {};
|
|
4389
4394
|
|
|
4390
4395
|
// send an email by user invocation
|