@xuda.io/ai_module 1.1.4482 → 1.1.4483
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 +2 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4374,11 +4374,8 @@ const chat_email = async function (req, job_id, headers) {
|
|
|
4374
4374
|
const account_profile_info = await account_module.get_active_account_profile_info(uid);
|
|
4375
4375
|
let { prompt: body, conversation_doc, attachments = [], ai_agents } = req;
|
|
4376
4376
|
try {
|
|
4377
|
-
if (
|
|
4378
|
-
|
|
4379
|
-
if (!account_profile_info.account_profile_obj?.email_account_id) {
|
|
4380
|
-
throw new Error('The user profile must include a defined email_account_id');
|
|
4381
|
-
}
|
|
4377
|
+
if (!account_profile_info.account_profile_obj?.email_account_id) {
|
|
4378
|
+
throw new Error('The user profile must include a defined email_account_id');
|
|
4382
4379
|
}
|
|
4383
4380
|
|
|
4384
4381
|
const conversation_id = conversation_doc._id;
|