@xuda.io/account_module 1.2.799 → 1.2.801
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 +14 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1546,6 +1546,20 @@ export const get_contacts = async function (req) {
|
|
|
1546
1546
|
skip: skip || 0,
|
|
1547
1547
|
};
|
|
1548
1548
|
|
|
1549
|
+
switch (filter_type) {
|
|
1550
|
+
case 'archived': {
|
|
1551
|
+
opt.selector.stat = 0;
|
|
1552
|
+
break;
|
|
1553
|
+
}
|
|
1554
|
+
case 'shared': {
|
|
1555
|
+
opt.selector.shared_from_uid = { $gt: null };
|
|
1556
|
+
break;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
default:
|
|
1560
|
+
break;
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1549
1563
|
if (_id) {
|
|
1550
1564
|
opt.selector._id = _id;
|
|
1551
1565
|
}
|