@xuda.io/ai_module 1.1.5481 → 1.1.5482
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 +5 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1544,7 +1544,11 @@ export const delete_conversation_item = async function (req) {
|
|
|
1544
1544
|
conversation_item_doc.ts = Date.now();
|
|
1545
1545
|
save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, conversation_item_doc);
|
|
1546
1546
|
if (conversation_item_doc?.conversation_item_reference_id) {
|
|
1547
|
-
|
|
1547
|
+
try {
|
|
1548
|
+
await client.conversations.items.delete(conversation_doc.reference_conversation_id, conversation_item_doc.conversation_item_reference_id);
|
|
1549
|
+
} catch (error) {
|
|
1550
|
+
debugger;
|
|
1551
|
+
}
|
|
1548
1552
|
}
|
|
1549
1553
|
|
|
1550
1554
|
return save_ret;
|