@xuda.io/account_module 1.2.1054 → 1.2.1055

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 +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2590,15 +2590,15 @@ export const get_account_profiles = async function (req) {
2590
2590
  };
2591
2591
  };
2592
2592
 
2593
- export const archive_profile = async function (req) {
2593
+ export const archive_account_profile = async function (req) {
2594
2594
  const { profile_id } = req;
2595
2595
  try {
2596
- var contact_doc = await db_module.get_couch_doc_native('xuda_contacts', profile_id);
2596
+ var contact_doc = await db_module.get_couch_doc_native('xuda_accounts', profile_id);
2597
2597
  contact_doc.stat = 5;
2598
2598
  contact_doc.stat_ts = Date.now();
2599
2599
  contact_doc.stat_reason = 'archived by the user';
2600
2600
 
2601
- const contact_save_ret = await db_module.save_couch_doc('xuda_contacts', contact_doc);
2601
+ const contact_save_ret = await db_module.save_couch_doc('xuda_accounts', contact_doc);
2602
2602
 
2603
2603
  return contact_save_ret;
2604
2604
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1054",
3
+ "version": "1.2.1055",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {