@xuda.io/ai_module 1.1.3598 → 1.1.3600
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 -0
- 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: doc._id, uid });
|
|
5706
|
+
}
|
|
5704
5707
|
};
|