@xuda.io/account_module 1.2.1195 → 1.2.1197
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 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -588,7 +588,7 @@ export const get_active_account_profile_info = async function (uid) {
|
|
|
588
588
|
}
|
|
589
589
|
const app_id = await get_account_default_project_id(account_profile_obj.shared_from_uid || account_profile_obj.uid);
|
|
590
590
|
|
|
591
|
-
return { account_profile_id: active_account_profile_id, app_id, is_main: acc_obj.account_info.active_account_profile_id === acc_obj.account_profile_id, account_profile_obj };
|
|
591
|
+
return { uid: account_profile_obj.shared_from_uid || uid, account_profile_id: active_account_profile_id, app_id, is_main: acc_obj.account_info.active_account_profile_id === acc_obj.account_profile_id, account_profile_obj };
|
|
592
592
|
};
|
|
593
593
|
|
|
594
594
|
export const get_account_name = async function (req) {
|
|
@@ -1969,7 +1969,8 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1969
1969
|
ts: d,
|
|
1970
1970
|
docType: 'contact',
|
|
1971
1971
|
contact_uid,
|
|
1972
|
-
uid,
|
|
1972
|
+
uid: account_profile_info.uid,
|
|
1973
|
+
uid_created: uid,
|
|
1973
1974
|
context,
|
|
1974
1975
|
headers,
|
|
1975
1976
|
source,
|
|
@@ -2011,7 +2012,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2011
2012
|
export const update_contact = async function (req) {
|
|
2012
2013
|
const { uid, email, contact_uid, stat, team_req_id } = req;
|
|
2013
2014
|
|
|
2014
|
-
const account_profile_info = await
|
|
2015
|
+
const account_profile_info = await get_active_account_profile_info(uid);
|
|
2015
2016
|
|
|
2016
2017
|
var contact_ret;
|
|
2017
2018
|
if (email) {
|