@xuda.io/account_module 1.2.1123 → 1.2.1125
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 +4 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2554,7 +2554,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2554
2554
|
doc.notifications = 0;
|
|
2555
2555
|
|
|
2556
2556
|
let uid_query = uid;
|
|
2557
|
-
if (doc.
|
|
2557
|
+
if (doc.shared_from_uid) uid_query = doc.shared_from_uid;
|
|
2558
2558
|
const account_info_ret = await get_account_name({ uid_query });
|
|
2559
2559
|
if (account_info_ret.code < 0) {
|
|
2560
2560
|
return;
|
|
@@ -2630,7 +2630,7 @@ export const get_account_profiles = async function (req) {
|
|
|
2630
2630
|
break;
|
|
2631
2631
|
}
|
|
2632
2632
|
case 'shared': {
|
|
2633
|
-
opt.selector.shared_from_uid = { $gt: null };
|
|
2633
|
+
// opt.selector.shared_from_uid = { $gt: null };
|
|
2634
2634
|
break;
|
|
2635
2635
|
}
|
|
2636
2636
|
|
|
@@ -2699,11 +2699,11 @@ export const get_account_profiles = async function (req) {
|
|
|
2699
2699
|
}
|
|
2700
2700
|
|
|
2701
2701
|
if (!profile_id) {
|
|
2702
|
-
|
|
2702
|
+
if (filter_type !== 'mine') {
|
|
2703
2703
|
////// FROM - IN
|
|
2704
2704
|
shared_from.docs = await get_share_profile_in(uid, filter_type === 'pending');
|
|
2705
2705
|
shared_from.total_docs = shared_from.docs.length;
|
|
2706
|
-
}
|
|
2706
|
+
// }
|
|
2707
2707
|
// }
|
|
2708
2708
|
|
|
2709
2709
|
return {
|