@xuda.io/account_module 1.2.907 → 1.2.909

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1812,7 +1812,7 @@ export const pin_contact = async function (req) {
1812
1812
  data: {
1813
1813
  service: 'contact_pinned',
1814
1814
  to: [uid],
1815
- data: contact_id,
1815
+ data: await get_contact_info(uid, null, contact_id),
1816
1816
  },
1817
1817
  }),
1818
1818
  ),
@@ -1828,7 +1828,7 @@ export const pin_contact = async function (req) {
1828
1828
  };
1829
1829
 
1830
1830
  export const unpin_contact = async function (req) {
1831
- const { contact_id } = req;
1831
+ const { contact_id, uid } = req;
1832
1832
  try {
1833
1833
  const contact_ret = await db_module.get_couch_doc('xuda_contacts', contact_id);
1834
1834
  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.907",
3
+ "version": "1.2.909",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {