@xuda.io/account_module 1.2.1290 → 1.2.1291

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 +12 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1589,6 +1589,18 @@ export const update_contact = async function (req) {
1589
1589
  } else if (contact_uid) {
1590
1590
  contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_contact_uid', { key: [account_profile_info.uid, contact_uid] });
1591
1591
  }
1592
+
1593
+ let opt = {
1594
+ selector: {
1595
+ docType: 'contact',
1596
+ stat: 3,
1597
+ email,
1598
+ },
1599
+ limit: 1,
1600
+ fields: ['_id'],
1601
+ };
1602
+ const user_contacts = await find_contact_query(account_profile_info.uid, opt);
1603
+
1592
1604
  if (contact_ret.rows.length) {
1593
1605
  var doc = contact_ret.rows[0].value;
1594
1606
  if (stat) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1290",
3
+ "version": "1.2.1291",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {