@xuda.io/account_module 1.2.497 → 1.2.499

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 +4 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1257,7 +1257,9 @@ const get_contact_border = function (doc) {
1257
1257
  return ret;
1258
1258
  };
1259
1259
 
1260
- export const get_contact_info = async function (doc) {
1260
+ export const get_contact_info = async function (contact_doc) {
1261
+ let doc = contact_doc;
1262
+
1261
1263
  if (doc.contact_uid) {
1262
1264
  const account_info_ret = await get_account_name({ uid_query: doc.contact_uid });
1263
1265
  if (account_info_ret.code < 0) {
@@ -1293,8 +1295,7 @@ export const get_contact_info = async function (doc) {
1293
1295
 
1294
1296
  doc.email = '';
1295
1297
 
1296
- return;
1297
- doc;
1298
+ return doc;
1298
1299
  };
1299
1300
 
1300
1301
  export const get_contacts = async function (req) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.497",
3
+ "version": "1.2.499",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {