@xuda.io/ai_module 1.1.4462 → 1.1.4464
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 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3138,7 +3138,7 @@ const save_agent_status = async function (uid, agent_id, stat, agentConfig) {
|
|
|
3138
3138
|
|
|
3139
3139
|
export const create_ai_agent = async function (req, job_id, headers) {
|
|
3140
3140
|
const { agentConfig, uid } = req;
|
|
3141
|
-
|
|
3141
|
+
debugger;
|
|
3142
3142
|
const { account_project_id: app_id, account_info } = await account_module.get_default_project_account_doc(uid);
|
|
3143
3143
|
|
|
3144
3144
|
const account_profile_info = await account_module.get_active_account_profile_info(uid);
|
|
@@ -4363,7 +4363,7 @@ const chat_email = async function (req, job_id, headers) {
|
|
|
4363
4363
|
|
|
4364
4364
|
const sender_app_id = account_profile_info.app_id;
|
|
4365
4365
|
let sender_conversation_doc = await db_module.get_app_couch_doc_native(sender_app_id, conversation_id);
|
|
4366
|
-
|
|
4366
|
+
|
|
4367
4367
|
await attachment_handler(uid, sender_app_id, conversation_id, attachments, account_profile_info);
|
|
4368
4368
|
|
|
4369
4369
|
const item = await client.conversations.items.create(conversation_id, {
|
|
@@ -4381,9 +4381,9 @@ const chat_email = async function (req, job_id, headers) {
|
|
|
4381
4381
|
sender_conversation_doc.messages.push(obj);
|
|
4382
4382
|
await db_module.save_app_couch_doc_native(sender_app_id, sender_conversation_doc);
|
|
4383
4383
|
|
|
4384
|
-
await db_module.save_app_couch_doc_native(sender_app_id, { _id: obj.id, stat: 3, docType: 'chat_conversation_item', ts: obj.ts, uid, conversation_type: obj.conversation_type, date_created_ts: obj.ts, conversation_id, body });
|
|
4384
|
+
const save_ret = await db_module.save_app_couch_doc_native(sender_app_id, { _id: obj.id, stat: 3, docType: 'chat_conversation_item', ts: obj.ts, uid, conversation_type: obj.conversation_type, date_created_ts: obj.ts, conversation_id, body });
|
|
4385
4385
|
|
|
4386
|
-
return
|
|
4386
|
+
return save_ret;
|
|
4387
4387
|
} catch (err) {
|
|
4388
4388
|
return { code: -15, data: err.message };
|
|
4389
4389
|
}
|