@xuda.io/account_module 1.2.434 → 1.2.436

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 +4 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -10,7 +10,7 @@ import util from 'util';
10
10
  // Convert exec to a promise for cleaner async/await usage
11
11
  const execAsync = util.promisify(exec);
12
12
 
13
- const account_info_properties = ['bio', 'country', 'email', 'first_name', 'last_name', 'mainCategory', 'subCategory', 'profile_picture', 'username', 'website'];
13
+ const account_info_properties = ['bio', 'tel', 'address', 'city', 'state', 'zip', 'country', 'email', 'first_name', 'last_name', 'mainCategory', 'subCategory', 'profile_picture', 'username', 'website'];
14
14
 
15
15
  global._conf = (
16
16
  await import(path.join(process.env.XUDA_HOME, process.env.XUDA_CONFIG), {
@@ -62,7 +62,9 @@ export const update_account_info = async function (req, job_id, headers) {
62
62
 
63
63
  await marketplace_module.marketplace_save_user({ uid });
64
64
 
65
- _.forEach(data, function (val, key) {
65
+ _.forEach(account_info_properties, function (key) {
66
+ let val = data[key];
67
+
66
68
  if (account_obj.account_info[key] !== val) {
67
69
  change += ' from ' + account_obj.account_info[key] + ' to ' + val;
68
70
  account_info_changes_arr.push(key);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.434",
3
+ "version": "1.2.436",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {