@xuda.io/account_module 1.2.899 → 1.2.901

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 +15 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1687,7 +1687,7 @@ export const get_contacts = async function (req) {
1687
1687
  my_contact.total_docs = 1;
1688
1688
  }
1689
1689
  }
1690
- debugger;
1690
+
1691
1691
  return {
1692
1692
  code: 1,
1693
1693
  data: {
@@ -1804,6 +1804,20 @@ export const pin_contact = async function (req) {
1804
1804
 
1805
1805
  const contact_save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
1806
1806
 
1807
+ global[`_controller_module_ch`].sendToQueue(
1808
+ 'ws_dashboard_module',
1809
+ Buffer.from(
1810
+ JSON.stringify({
1811
+ method: 'emit_message_to_dashboard',
1812
+ data: {
1813
+ service: 'ai_agent_error',
1814
+ to: [doc.studio_meta.createdByUid],
1815
+ data: errors,
1816
+ },
1817
+ }),
1818
+ ),
1819
+ );
1820
+
1807
1821
  return contact_save_ret;
1808
1822
  } catch (err) {
1809
1823
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.899",
3
+ "version": "1.2.901",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {