@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.
Files changed (2) hide show
  1. package/index.mjs +2 -1
  2. 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.908",
3
+ "version": "1.2.910",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {