@xuda.io/account_module 1.2.463 → 1.2.465

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 +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1167,7 +1167,7 @@ export const merge_contact = async function (req) {
1167
1167
  };
1168
1168
 
1169
1169
  const get_contact_background = function (doc) {
1170
- const ret = `linear-gradient(145deg,#60496e8c 0%,#71C4FF44 100%)`;
1170
+ let ret = `linear-gradient(145deg,#60496e8c 0%,#71C4FF44 100%)`;
1171
1171
 
1172
1172
  if (doc.pending) {
1173
1173
  ret = `linear-gradient(145deg, #4f4f4f8c 0%, #0e0f0f44 100%);`;
@@ -1197,7 +1197,7 @@ const get_contact_background = function (doc) {
1197
1197
  };
1198
1198
 
1199
1199
  const get_contact_pattern = function (doc) {
1200
- const ret = `default-pattern.png`;
1200
+ let ret = `default-pattern.png`;
1201
1201
 
1202
1202
  if (doc.contact_uid) {
1203
1203
  ret = `xu-pattern.png`;
@@ -1313,9 +1313,9 @@ export const get_contacts = async function (req) {
1313
1313
  continue; // throw new Error(`account ${contact_uid} not found`);
1314
1314
  }
1315
1315
  doc.profile_avatar = account_ret.data.profile_avatar;
1316
- doc.icon_pattern = get_contact_pattern(doc);
1317
1316
  doc.name = `${account_ret.data.first_name} ${account_ret.data.last_name}`;
1318
1317
  }
1318
+ doc.icon_pattern = get_contact_pattern(doc);
1319
1319
  doc.card_background = get_contact_background({ pending: true });
1320
1320
  requests_to.docs.push(doc);
1321
1321
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.463",
3
+ "version": "1.2.465",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {