@xuda.io/ai_module 1.1.3598 → 1.1.3599

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.
Files changed (2) hide show
  1. package/index.mjs +3 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5701,4 +5701,7 @@ export const modify_profile_avatar = async function (req, job_id, headers) {
5701
5701
  const delete_depended_chats = async function (uid, reference_id = '392_agn_0048da9b2fa2') {
5702
5702
  const chats_ret = await get_ai_chats({ uid, reference_id });
5703
5703
  console.log(chats_ret.data);
5704
+ for await (const doc of chats_ret.data.docs) {
5705
+ await delete_ai_chat({ conversation_id: _id, uid });
5706
+ }
5704
5707
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.3598",
3
+ "version": "1.1.3599",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",