@xuda.io/ai_module 1.1.5503 → 1.1.5504
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5116,10 +5116,13 @@ const add_conversation_item = async function (uid, profile_id, conversation_id,
|
|
|
5116
5116
|
const account_profile_info = await get_active_account_profile_info(uid, profile_id);
|
|
5117
5117
|
|
|
5118
5118
|
try {
|
|
5119
|
-
const
|
|
5119
|
+
const account_info_ret = await get_account_name({ uid_query: uid });
|
|
5120
|
+
if (account_info_ret.code < 0) throw new Error(account_info_ret.data);
|
|
5120
5121
|
let contact_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, contact_id);
|
|
5121
5122
|
const conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_id);
|
|
5122
5123
|
|
|
5124
|
+
let text = `${new Date()} `;
|
|
5125
|
+
|
|
5123
5126
|
try {
|
|
5124
5127
|
const item = await client.conversations.items.create(conversation_doc.reference_conversation_id, {
|
|
5125
5128
|
items: [
|