@xuda.io/account_module 1.2.1402 → 1.2.1403
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 +8 -8
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1989,14 +1989,14 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1989
1989
|
if (account_code < 0) {
|
|
1990
1990
|
throw new Error(`account ${contact_uid} not found`);
|
|
1991
1991
|
}
|
|
1992
|
-
if (!account_info.profile_picture) {
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
}
|
|
1999
|
-
|
|
1992
|
+
// if (!account_info.profile_picture) {
|
|
1993
|
+
// account_info.profile_picture_obj = await ai_module.get_profile_picture(uid, account_type, name, { email, context, metadata, account_info }, account_profile_info, job_id, headers);
|
|
1994
|
+
// account_info.profile_picture = account_info.profile_picture_obj.file_url;
|
|
1995
|
+
// // account_info.profile_picture_obj = profile_picture_obj;
|
|
1996
|
+
// // account_info.profile_picture = profile_picture;
|
|
1997
|
+
// const account_save_ret = await db_module.save_couch_doc('xuda_accounts', account_obj);
|
|
1998
|
+
// }
|
|
1999
|
+
set_account_profile_picture(uid, contact_uid);
|
|
2000
2000
|
const { bio, business_name, country, mainCategory, subCategory } = account_info;
|
|
2001
2001
|
} else {
|
|
2002
2002
|
// contact without use account
|