@xuda.io/account_module 1.2.909 → 1.2.911
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 +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1568,6 +1568,7 @@ export const get_contacts = async function (req) {
|
|
|
1568
1568
|
},
|
|
1569
1569
|
limit: limit || 9999,
|
|
1570
1570
|
skip: skip || 0,
|
|
1571
|
+
sort: [{ ts: 'desc' }],
|
|
1571
1572
|
};
|
|
1572
1573
|
|
|
1573
1574
|
switch (filter_type) {
|
|
@@ -1637,7 +1638,7 @@ export const get_contacts = async function (req) {
|
|
|
1637
1638
|
delete opt.skip;
|
|
1638
1639
|
opt.limit = 9999;
|
|
1639
1640
|
opt.fields = ['_id'];
|
|
1640
|
-
|
|
1641
|
+
debugger;
|
|
1641
1642
|
const counter = await db_module.find_couch_query('xuda_contacts', opt);
|
|
1642
1643
|
contacts.total_docs = counter.docs.length;
|
|
1643
1644
|
}
|