@xuda.io/account_module 1.2.376 → 1.2.377

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 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1139,7 +1139,6 @@ export const merge_contact = async function (req) {
1139
1139
  };
1140
1140
 
1141
1141
  export const get_contacts = async function (req) {
1142
- debugger;
1143
1142
  const { uid, name, limit, skip, bookmark, search, with_requests } = req;
1144
1143
  var opt = {
1145
1144
  selector: {
@@ -1189,9 +1188,9 @@ export const get_contacts = async function (req) {
1189
1188
  opt.bookmark = bookmark;
1190
1189
  }
1191
1190
 
1192
- const contacts_ret = await db_module.find_couch_query('xuda_contacts', opt);
1191
+ const contacts = await db_module.find_couch_query('xuda_contacts', opt);
1193
1192
  debugger;
1194
- for await (let doc of contacts_ret.data.docs) {
1193
+ for await (let doc of contacts.docs) {
1195
1194
  if (doc.contact_uid) {
1196
1195
  const account_ret = await get_account_name({ uid_query: doc.contact_uid });
1197
1196
  if (account_ret.code < 0) {
@@ -1227,7 +1226,7 @@ export const get_contacts = async function (req) {
1227
1226
  team_req_from_uid: e.team_req_from_uid,
1228
1227
  team_req_id: e._id,
1229
1228
  })),
1230
- ...contacts_ret.docs,
1229
+ ...contacts.docs,
1231
1230
  ],
1232
1231
  },
1233
1232
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.376",
3
+ "version": "1.2.377",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {