@xuda.io/account_module 1.2.1036 → 1.2.1037
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 +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2575,7 +2575,7 @@ export const get_profiles = async function (req) {
|
|
|
2575
2575
|
|
|
2576
2576
|
let requests_from = { docs: [], total_docs: 0 };
|
|
2577
2577
|
let shared_from = { docs: [], total_docs: 0 };
|
|
2578
|
-
|
|
2578
|
+
|
|
2579
2579
|
let contact_docs = { docs: [], total_docs: profiles.total_docs };
|
|
2580
2580
|
for await (let doc of profiles.docs) {
|
|
2581
2581
|
if (ret_to) continue;
|
|
@@ -2605,8 +2605,8 @@ export const get_profiles = async function (req) {
|
|
|
2605
2605
|
return {
|
|
2606
2606
|
code: 1,
|
|
2607
2607
|
data: {
|
|
2608
|
-
docs: [...
|
|
2609
|
-
total_docs:
|
|
2608
|
+
docs: [...shared_from.docs, ...contact_docs.docs],
|
|
2609
|
+
total_docs: shared_from.total_docs + contact_docs.total_docs,
|
|
2610
2610
|
},
|
|
2611
2611
|
};
|
|
2612
2612
|
};
|