@xuda.io/account_module 1.2.1294 → 1.2.1295

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1934,7 +1934,7 @@ export const get_user_card = async function (uid, uid_query) {
1934
1934
 
1935
1935
  let user_contact_obj;
1936
1936
 
1937
- const contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_contact_uid', { key: [uid, uid_query] });
1937
+ // const contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_contact_uid', { key: [uid, uid_query] });
1938
1938
 
1939
1939
  const opt = {
1940
1940
  selector: {
@@ -1947,7 +1947,7 @@ export const get_user_card = async function (uid, uid_query) {
1947
1947
  };
1948
1948
  const user_contacts = await find_contact_query(uid, opt);
1949
1949
 
1950
- const contact_id = contact_ret?.docs?.[0]?._id;
1950
+ const contact_id = user_contacts?.docs?.[0]?._id;
1951
1951
  if (contact_id) {
1952
1952
  user_contact_obj = await get_contact_info(uid, null, contact_id);
1953
1953
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1294",
3
+ "version": "1.2.1295",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {