@xuda.io/account_module 1.2.1055 → 1.2.1056

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 +5 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2593,12 +2593,12 @@ export const get_account_profiles = async function (req) {
2593
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_accounts', profile_id);
2597
- contact_doc.stat = 5;
2598
- contact_doc.stat_ts = Date.now();
2599
- contact_doc.stat_reason = 'archived by the user';
2596
+ var contact_profile_doc = await db_module.get_couch_doc_native('xuda_accounts', profile_id);
2597
+ contact_profile_doc.stat = 5;
2598
+ contact_profile_doc.stat_ts = Date.now();
2599
+ contact_profile_doc.stat_reason = 'archived by the user';
2600
2600
 
2601
- const contact_save_ret = await db_module.save_couch_doc('xuda_accounts', contact_doc);
2601
+ const contact_save_ret = await db_module.save_couch_doc('xuda_accounts', contact_profile_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.1055",
3
+ "version": "1.2.1056",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {