@xuda.io/account_module 1.2.2235 → 1.2.2237

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 +10 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2283,7 +2283,16 @@ export const get_contacts = async function (req, job_id, headers) {
2283
2283
 
2284
2284
  if (!account_profile_info.is_main) {
2285
2285
  opt.selector.account_profiles = { $in: [account_profile_info.account_profile_id] };
2286
- }
2286
+ } else {
2287
+ const active_profiles = await db_module.find_app_couch_query(account_profile_info.app_id, {
2288
+ selector: {
2289
+ docType: 'account_profile',
2290
+ uid: account_profile_info.uid,
2291
+ stat: { $lt: 4 },
2292
+ },
2293
+ fields: ['_id'],
2294
+ limit: 9999,
2295
+ });
2287
2296
 
2288
2297
  switch (filter_type) {
2289
2298
  case 'archived': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2235",
3
+ "version": "1.2.2237",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {