@xuda.io/account_module 1.2.1030 → 1.2.1031

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
@@ -2491,13 +2491,13 @@ export const get_profiles = async function (req) {
2491
2491
  const { _id, uid, name, limit, skip, bookmark, search, filter_type = 'all', contact_id } = req;
2492
2492
 
2493
2493
  if (_id) {
2494
- let data = await db_module.get_couch_doc('xuda_contacts', _id);
2494
+ let data = await db_module.get_couch_doc('xuda_accounts', _id);
2495
2495
  return data;
2496
2496
  }
2497
2497
 
2498
2498
  var opt = {
2499
2499
  selector: {
2500
- docType: 'contact',
2500
+ docType: 'account_profile',
2501
2501
  uid,
2502
2502
  stat: { $lt: 4 },
2503
2503
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1030",
3
+ "version": "1.2.1031",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {