@xuda.io/ai_module 1.1.4224 → 1.1.4226
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 +6 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4469,11 +4469,15 @@ const chat_note = async function (req, job_id, headers) {
|
|
|
4469
4469
|
],
|
|
4470
4470
|
});
|
|
4471
4471
|
|
|
4472
|
-
const obj = { id: item.data[0].id, ts: Date.now(), uid, read: true,
|
|
4472
|
+
const obj = { id: item.data[0].id, ts: Date.now(), uid, read: true, conversation_type: 'note' };
|
|
4473
4473
|
|
|
4474
|
-
sender_conversation_doc.messages.push(
|
|
4474
|
+
sender_conversation_doc.messages.push(obj);
|
|
4475
4475
|
await db_module.save_app_couch_doc_native(sender_app_id, sender_conversation_doc);
|
|
4476
4476
|
|
|
4477
|
+
obj.docType = 'chat_conversation_item';
|
|
4478
|
+
|
|
4479
|
+
await db_module.save_app_couch_doc_native(sender_app_id, {});
|
|
4480
|
+
|
|
4477
4481
|
return { code: 15, data: item };
|
|
4478
4482
|
};
|
|
4479
4483
|
|