@xuda.io/account_module 1.2.902 → 1.2.904
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 +15 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1804,7 +1804,7 @@ 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[`
|
|
1807
|
+
global[`_ai_module_ch`].sendToQueue(
|
|
1808
1808
|
'ws_dashboard_module',
|
|
1809
1809
|
Buffer.from(
|
|
1810
1810
|
JSON.stringify({
|
|
@@ -1839,6 +1839,20 @@ export const unpin_contact = async function (req) {
|
|
|
1839
1839
|
|
|
1840
1840
|
const contact_save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
|
|
1841
1841
|
|
|
1842
|
+
global[`_ai_module_ch`].sendToQueue(
|
|
1843
|
+
'ws_dashboard_module',
|
|
1844
|
+
Buffer.from(
|
|
1845
|
+
JSON.stringify({
|
|
1846
|
+
method: 'emit_message_to_dashboard',
|
|
1847
|
+
data: {
|
|
1848
|
+
service: 'contact_unpinned',
|
|
1849
|
+
to: [uid],
|
|
1850
|
+
data: contact_id,
|
|
1851
|
+
},
|
|
1852
|
+
}),
|
|
1853
|
+
),
|
|
1854
|
+
);
|
|
1855
|
+
|
|
1842
1856
|
return contact_save_ret;
|
|
1843
1857
|
} catch (err) {
|
|
1844
1858
|
return {
|