@xuda.io/account_module 1.2.908 → 1.2.910
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) {
|
|
@@ -1828,7 +1829,7 @@ export const pin_contact = async function (req) {
|
|
|
1828
1829
|
};
|
|
1829
1830
|
|
|
1830
1831
|
export const unpin_contact = async function (req) {
|
|
1831
|
-
const { contact_id } = req;
|
|
1832
|
+
const { contact_id, uid } = req;
|
|
1832
1833
|
try {
|
|
1833
1834
|
const contact_ret = await db_module.get_couch_doc('xuda_contacts', contact_id);
|
|
1834
1835
|
if (contact_ret.code < 0) {
|