@xuda.io/ai_module 1.1.4478 → 1.1.4480
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 +3 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4065,9 +4065,10 @@ export const create_conversation = async function (req, job_id, headers) {
|
|
|
4065
4065
|
const account_profile_info = await account_module.get_active_account_profile_info(uid);
|
|
4066
4066
|
const { account_profile_obj } = account_profile_info;
|
|
4067
4067
|
|
|
4068
|
-
if (conversation_type === 'email'
|
|
4068
|
+
if (conversation_type === 'email') {
|
|
4069
|
+
///&& email_direction === 'out'
|
|
4069
4070
|
if (!account_profile_obj?.email_account_id) {
|
|
4070
|
-
throw new Error('email_account_id must be defined');
|
|
4071
|
+
throw new Error('email_account_id must be defined for the user profile');
|
|
4071
4072
|
}
|
|
4072
4073
|
}
|
|
4073
4074
|
|