@xuda.io/account_module 1.2.2047 → 1.2.2049

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 +6 -14
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -44,7 +44,7 @@ const module_path = path.join(process.env.XUDA_HOME, 'cpi') + (!_conf.is_debug ?
44
44
  const db_module = await import(`${module_path}/db_module/index.mjs`);
45
45
  const ai_ms = await import(`${module_path}/ai_module/index_ms.mjs`);
46
46
  const drive_ms = await import(`${module_path}/drive_module/index_ms.mjs`);
47
- const jobs_ms = await import(`${module_path}/jobs_module/index_ms.mjs`);
47
+
48
48
  const team_ms = await import(`${module_path}/team_module/index_ms.mjs`);
49
49
  const email_ms = await import(`${module_path}/email_module/index_ms.mjs`);
50
50
  const marketplace_ms = await import(`${module_path}/marketplace_module/index_ms.mjs`);
@@ -2559,19 +2559,11 @@ export const pin_contact = async function (req) {
2559
2559
 
2560
2560
  const contact_save_ret = await save_contact(uid, contact_doc);
2561
2561
 
2562
- global[`_account_module_ch`].sendToQueue(
2563
- 'ws_dashboard_module',
2564
- Buffer.from(
2565
- JSON.stringify({
2566
- method: 'emit_message_to_dashboard',
2567
- data: {
2568
- service: 'contact_pinned',
2569
- to: [uid],
2570
- data: await get_contact_info(uid, null, contact_id),
2571
- },
2572
- }),
2573
- ),
2574
- );
2562
+ ws_dashboard_ms.emit_message_to_dashboard({
2563
+ service: 'contact_pinned',
2564
+ to: [uid],
2565
+ data: await get_contact_info(uid, null, contact_id),
2566
+ });
2575
2567
 
2576
2568
  return contact_save_ret;
2577
2569
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2047",
3
+ "version": "1.2.2049",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {