@xuda.io/account_module 1.2.1086 → 1.2.1088

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2477,7 +2477,7 @@ export const update_account_profile = async function (req, job_id, headers) {
2477
2477
  let { data: acc_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
2478
2478
  let changes_arr = [];
2479
2479
  for (const key of account_profile_properties) {
2480
- let val = data[key];
2480
+ let val = req[key];
2481
2481
  if (typeof val === 'undefined') continue;
2482
2482
  if (acc_obj[key] !== val) {
2483
2483
  changes_arr.push(key);
@@ -2486,7 +2486,8 @@ export const update_account_profile = async function (req, job_id, headers) {
2486
2486
  }
2487
2487
 
2488
2488
  if (changes_arr.length) {
2489
- throw new Error('no change');
2489
+ // throw new Error('no change');
2490
+ return { code: 56, data: 'no change' };
2490
2491
  }
2491
2492
 
2492
2493
  acc_obj.ts = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1086",
3
+ "version": "1.2.1088",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {