@xuda.io/account_module 1.2.1169 → 1.2.1171

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 +9 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -573,6 +573,14 @@ export const get_account_info = async function (req) {
573
573
  });
574
574
  };
575
575
 
576
+ export const get_active_account_profile = async function (uid) {
577
+ const data = await db_module.get_couch_doc_native('xuda_accounts', uid);
578
+ return await get_account_data({
579
+ uid: req.uid,
580
+ enforce_usage: req.enforce_usage,
581
+ });
582
+ };
583
+
576
584
  export const get_account_name = async function (req) {
577
585
  const data = await db_module.get_couch_doc('xuda_accounts', req.uid_query || req.uid);
578
586
  if (data.code < 0) {
@@ -2633,7 +2641,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
2633
2641
 
2634
2642
  doc.online = await get_online();
2635
2643
 
2636
- doc.border = account_info_ret.data.active_account_profile_id === doc._id ? 'green' : '#1a3557';
2644
+ doc.border = account_info_ret.data.active_account_profile_id === doc._id ? 'yellow' : ''; //'#1a3557';
2637
2645
 
2638
2646
  const chats_ret = await ai_module.get_ai_chats({ uid, reference_id: doc._id });
2639
2647
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1169",
3
+ "version": "1.2.1171",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {