@xuda.io/account_module 1.2.816 → 1.2.817
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 +1 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1663,12 +1663,8 @@ export const delete_contact = async function (req, job_id, headers) {
|
|
|
1663
1663
|
contact_doc.stat_reason = 'deleted by the user';
|
|
1664
1664
|
|
|
1665
1665
|
const contact_save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
|
|
1666
|
-
const delete_contact_chats = async function () {
|
|
1667
|
-
const chats_ret = await get_ai_chats({ reference_id: contact_id }, job_id, headers);
|
|
1668
|
-
console.log(chats_ret);
|
|
1669
|
-
};
|
|
1670
1666
|
|
|
1671
|
-
|
|
1667
|
+
ai_module.delete_depended_chats(contact_id);
|
|
1672
1668
|
return contact_save_ret;
|
|
1673
1669
|
} catch (err) {
|
|
1674
1670
|
return {
|