@xuda.io/account_module 1.2.1083 → 1.2.1085
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 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2471,8 +2471,8 @@ export const create_account_profile = async function (req, job_id, headers) {
|
|
|
2471
2471
|
};
|
|
2472
2472
|
|
|
2473
2473
|
export const update_account_profile = async function (req, job_id, headers) {
|
|
2474
|
-
const { uid
|
|
2475
|
-
const account_profile_properties = ['profile_name', 'profile_signature', 'profile_email', 'profile_picture', 'profile_avatar', 'profile_picture_obj', 'profile_avatar_obj'];
|
|
2474
|
+
const { uid } = req;
|
|
2475
|
+
const account_profile_properties = ['profile_name', 'profile_signature', 'profile_email', 'profile_picture', 'profile_avatar', 'profile_picture_obj', 'profile_avatar_obj', 'auto_respond', 'auto_respond_mode', 'auto_respond_agents'];
|
|
2476
2476
|
try {
|
|
2477
2477
|
let { data: acc_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
|
|
2478
2478
|
let changes_arr = [];
|
|
@@ -2494,9 +2494,9 @@ export const update_account_profile = async function (req, job_id, headers) {
|
|
|
2494
2494
|
|
|
2495
2495
|
const save_ret = await db_module.save_couch_doc('xuda_accounts', acc_obj);
|
|
2496
2496
|
|
|
2497
|
-
return { code:
|
|
2497
|
+
return { code: 56, data: save_ret };
|
|
2498
2498
|
} catch (err) {
|
|
2499
|
-
return { code: -
|
|
2499
|
+
return { code: -56, data: err.message };
|
|
2500
2500
|
}
|
|
2501
2501
|
};
|
|
2502
2502
|
|