@xuda.io/account_module 1.2.1325 → 1.2.1326
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 +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2791,7 +2791,7 @@ export const unarchive_account_profile = async function (req) {
|
|
|
2791
2791
|
};
|
|
2792
2792
|
|
|
2793
2793
|
export const create_account_profile = async function (req, job_id, headers) {
|
|
2794
|
-
const { uid, profile_name, profile_signature,
|
|
2794
|
+
const { uid, profile_name, profile_signature, email_account_id, profile_picture, profile_avatar, profile_picture_obj, profile_avatar_obj, main } = req;
|
|
2795
2795
|
try {
|
|
2796
2796
|
const app_id = await get_account_default_project_id(uid);
|
|
2797
2797
|
// const { data: acc_obj } = await db_module.get_couch_doc('xuda_accounts', uid);
|
|
@@ -2807,7 +2807,7 @@ export const create_account_profile = async function (req, job_id, headers) {
|
|
|
2807
2807
|
uid,
|
|
2808
2808
|
profile_name, //: profile_name || acc_obj.account_info.business_name || acc_obj.account_info.name,
|
|
2809
2809
|
profile_signature,
|
|
2810
|
-
|
|
2810
|
+
email_account_id,
|
|
2811
2811
|
profile_picture,
|
|
2812
2812
|
profile_avatar,
|
|
2813
2813
|
profile_picture_obj,
|
|
@@ -2827,7 +2827,7 @@ export const create_account_profile = async function (req, job_id, headers) {
|
|
|
2827
2827
|
export const update_account_profile = async function (req, job_id, headers) {
|
|
2828
2828
|
const { uid, _id } = req;
|
|
2829
2829
|
const app_id = await get_account_default_project_id(uid);
|
|
2830
|
-
const account_profile_properties = ['profile_name', 'profile_signature', '
|
|
2830
|
+
const account_profile_properties = ['profile_name', 'profile_signature', 'email_account_id', 'profile_picture', 'profile_avatar', 'profile_picture_obj', 'profile_avatar_obj', 'auto_respond', 'auto_respond_mode', 'auto_respond_agents'];
|
|
2831
2831
|
try {
|
|
2832
2832
|
let { data: account_profile_doc } = await db_module.get_app_couch_doc(app_id, _id);
|
|
2833
2833
|
|