@xuda.io/ai_module 1.1.5476 → 1.1.5477
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
|
@@ -1539,9 +1539,9 @@ export const delete_conversation_item = async function (req) {
|
|
|
1539
1539
|
conversation_item_doc.stat = 4;
|
|
1540
1540
|
conversation_item_doc.ts = Date.now();
|
|
1541
1541
|
save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, conversation_item_doc);
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1542
|
+
if (conversation_item_doc?.conversation_item_reference_id) {
|
|
1543
|
+
await client.conversations.items.delete(conversation_doc.reference_conversation_id, conversation_item_doc.conversation_item_reference_id);
|
|
1544
|
+
}
|
|
1545
1545
|
for (const msg of conversation_doc?.messages || []) {
|
|
1546
1546
|
for (const attachment of msg?.attachments || []) {
|
|
1547
1547
|
try {
|