@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.
- package/index.mjs +10 -1
- 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': {
|