@xuda.io/account_module 1.2.1077 → 1.2.1078

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 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2475,12 +2475,11 @@ export const update_account_profile = async function (req, job_id, headers) {
2475
2475
  const account_profile_properties = ['profile_name', 'profile_signature', 'profile_email', 'profile_picture', 'profile_avatar', 'profile_picture_obj', 'profile_avatar_obj'];
2476
2476
  try {
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
2480
  let val = data[key];
2481
2481
  if (typeof val === 'undefined') continue;
2482
- if (account_obj.account_info[key] !== val) {
2483
- change += ' from ' + account_obj.account_info[key] + ' to ' + val;
2482
+ if (acc_obj[key] !== val) {
2484
2483
  account_info_changes_arr.push(key);
2485
2484
 
2486
2485
  if (key === 'profile_picture') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1077",
3
+ "version": "1.2.1078",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {