@xuda.io/ai_module 1.1.4871 → 1.1.4872
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 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3889,7 +3889,7 @@ const chat_email = async function (req, job_id, headers) {
|
|
|
3889
3889
|
}
|
|
3890
3890
|
|
|
3891
3891
|
if (perform_ai_execution) {
|
|
3892
|
-
await attachment_handler(uid, sender_app_id, conversation_id, attachments, account_profile_info);
|
|
3892
|
+
await attachment_handler(uid, sender_app_id, conversation_id, attachments, account_profile_info, conversation_doc.date_created_ts);
|
|
3893
3893
|
}
|
|
3894
3894
|
let item;
|
|
3895
3895
|
try {
|
|
@@ -6078,7 +6078,7 @@ export const unpin_ai_agent = async function (req, job_id, headers) {
|
|
|
6078
6078
|
}
|
|
6079
6079
|
};
|
|
6080
6080
|
|
|
6081
|
-
const attachment_handler = async function (uid, app_id, conversation_id, attachments, account_profile_info) {
|
|
6081
|
+
const attachment_handler = async function (uid, app_id, conversation_id, attachments, account_profile_info, date_created_ts) {
|
|
6082
6082
|
if (!attachments?.length) return;
|
|
6083
6083
|
let conversation_doc = await db_module.get_app_couch_doc_native(app_id, conversation_id);
|
|
6084
6084
|
|
|
@@ -6228,7 +6228,7 @@ const attachment_handler = async function (uid, app_id, conversation_id, attachm
|
|
|
6228
6228
|
uid,
|
|
6229
6229
|
conversation_type: 'attachment',
|
|
6230
6230
|
type: 'attachment',
|
|
6231
|
-
date_created_ts: Date.now(),
|
|
6231
|
+
date_created_ts: date_created_ts || Date.now(),
|
|
6232
6232
|
ts: Date.now(),
|
|
6233
6233
|
conversation_id,
|
|
6234
6234
|
text: transcript?.data || transcript || '',
|