@xuda.io/ai_module 1.1.4473 → 1.1.4474

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.
Files changed (2) hide show
  1. package/index.mjs +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4361,7 +4361,7 @@ const chat_note = async function (req, job_id, headers) {
4361
4361
  };
4362
4362
 
4363
4363
  const chat_email = async function (req, job_id, headers) {
4364
- const { uid } = req;
4364
+ const { uid, email_id } = req;
4365
4365
  const account_profile_info = await account_module.get_active_account_profile_info(uid);
4366
4366
  let { prompt: body, conversation_doc, attachments = [], ai_agents } = req;
4367
4367
  try {
@@ -4387,7 +4387,7 @@ const chat_email = async function (req, job_id, headers) {
4387
4387
  sender_conversation_doc.messages.push(obj);
4388
4388
  await db_module.save_app_couch_doc_native(sender_app_id, sender_conversation_doc);
4389
4389
 
4390
- 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 });
4390
+ 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, email_id });
4391
4391
 
4392
4392
  return save_ret;
4393
4393
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4473",
3
+ "version": "1.1.4474",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",