@xuda.io/account_module 1.2.812 → 1.2.814
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1665,8 +1665,8 @@ export const delete_contact = async function (req, job_id, headers) {
|
|
|
1665
1665
|
const contact_save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
|
|
1666
1666
|
|
|
1667
1667
|
// delete chats
|
|
1668
|
-
const chats_ret = await get_ai_chats({});
|
|
1669
|
-
|
|
1668
|
+
const chats_ret = await get_ai_chats({ reference_id: contact_id }, job_id, headers);
|
|
1669
|
+
console.log(chats_ret);
|
|
1670
1670
|
return contact_save_ret;
|
|
1671
1671
|
} catch (err) {
|
|
1672
1672
|
return {
|