@xuda.io/account_module 1.2.884 → 1.2.885
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 +5 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1619,11 +1619,11 @@ export const get_contacts = async function (req) {
|
|
|
1619
1619
|
contacts = await db_module.find_couch_query('xuda_contacts', opt);
|
|
1620
1620
|
}
|
|
1621
1621
|
|
|
1622
|
-
let requests_to = { docs: [] };
|
|
1623
|
-
let requests_from = { docs: [] };
|
|
1624
|
-
let shared_from = { docs: [] };
|
|
1625
|
-
let my_contact = { docs: [] };
|
|
1626
|
-
let contact_docs = { docs: [] };
|
|
1622
|
+
let requests_to = { docs: [], total_docs: 0 };
|
|
1623
|
+
let requests_from = { docs: [], total_docs: 0 };
|
|
1624
|
+
let shared_from = { docs: [], total_docs: 0 };
|
|
1625
|
+
let my_contact = { docs: [], total_docs: 0 };
|
|
1626
|
+
let contact_docs = { docs: [], total_docs: 0 };
|
|
1627
1627
|
for await (let doc of contacts.docs) {
|
|
1628
1628
|
const ret_to = requests_to.docs.find((e) => {
|
|
1629
1629
|
return e.contact_uid === doc.contact_uid;
|