@xuda.io/account_module 1.2.889 → 1.2.891
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 +6 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1577,6 +1577,11 @@ export const get_contacts = async function (req) {
|
|
|
1577
1577
|
break;
|
|
1578
1578
|
}
|
|
1579
1579
|
|
|
1580
|
+
case 'pinned': {
|
|
1581
|
+
opt.selector.pinned = true;
|
|
1582
|
+
break;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1580
1585
|
default:
|
|
1581
1586
|
with_requests = true;
|
|
1582
1587
|
break;
|
|
@@ -1674,7 +1679,7 @@ export const get_contacts = async function (req) {
|
|
|
1674
1679
|
code: 1,
|
|
1675
1680
|
data: {
|
|
1676
1681
|
docs: [...my_contact.docs, ...shared_from.docs, ...requests_from.docs, ...requests_to.docs, ...contact_docs.docs],
|
|
1677
|
-
total_docs:
|
|
1682
|
+
total_docs: my_contact.total_docs + shared_from.total_docs + requests_from.total_docs + requests_to.total_docs + contact_docs.total_docs,
|
|
1678
1683
|
},
|
|
1679
1684
|
};
|
|
1680
1685
|
};
|