@xuda.io/account_module 1.2.804 → 1.2.806

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 +1 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1637,11 +1637,7 @@ export const get_contacts = async function (req) {
1637
1637
  export const archive_contact = async function (req) {
1638
1638
  const { contact_id } = req;
1639
1639
  try {
1640
- const contact_ret = await db_module.get_couch_doc('xuda_contacts', contact_id);
1641
- if (contact_ret.code < 0) {
1642
- return contact_ret;
1643
- }
1644
- var contact_doc = contact_ret.data;
1640
+ var contact_doc = await db_module.get_couch_doc_native('xuda_contacts', contact_id);
1645
1641
  contact_doc.stat = 5;
1646
1642
  contact_doc.stat_ts = Date.now();
1647
1643
  contact_doc.stat_reason = 'archived by the user';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.804",
3
+ "version": "1.2.806",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {