@xuda.io/account_module 1.2.337 → 1.2.339
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 +4 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -48,12 +48,13 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
48
48
|
var account_obj = ret.data;
|
|
49
49
|
account_obj.ts = Date.now();
|
|
50
50
|
var change = '';
|
|
51
|
-
var
|
|
51
|
+
var account_info_changes_arr = [];
|
|
52
52
|
var error = {};
|
|
53
53
|
|
|
54
54
|
await marketplace_module.marketplace_save_user({ uid });
|
|
55
55
|
|
|
56
56
|
_.forEach(data, function (val, key) {
|
|
57
|
+
account_info_changes_arr.push(key);
|
|
57
58
|
if (account_obj.account_info[key] !== val) {
|
|
58
59
|
change += ' from ' + account_obj.account_info[key] + ' to ' + val;
|
|
59
60
|
|
|
@@ -150,6 +151,8 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
150
151
|
await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Chat Attachments', is_system: true } }, job_id, headers);
|
|
151
152
|
|
|
152
153
|
const ret2 = await db_module.save_couch_doc('xuda_accounts', account_obj);
|
|
154
|
+
|
|
155
|
+
update_contacts_with_account_changes(account_obj._id, account_info_changes_arr);
|
|
153
156
|
if (ret2.code > 0) {
|
|
154
157
|
return { code: 1300, data: 'ok' };
|
|
155
158
|
}
|