@xuda.io/account_module 1.2.1085 → 1.2.1087
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.
- package/index.mjs +1 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2477,11 +2477,10 @@ 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 =
|
|
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);
|
|
2484
|
-
|
|
2485
2484
|
acc_obj[key] = val;
|
|
2486
2485
|
}
|
|
2487
2486
|
}
|