@xuda.io/account_module 1.2.1425 → 1.2.1427
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 +18 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2178,14 +2178,28 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
|
|
|
2178
2178
|
if (!contact_obj.profile_avatar) {
|
|
2179
2179
|
const business_info = await get_business_info(uid, contact_obj.name, contact_obj.email, account_profile_info);
|
|
2180
2180
|
const { business_size, business_category, business_sub_category, business_country } = business_info;
|
|
2181
|
-
contact_obj.mainCategory =
|
|
2182
|
-
contact_obj.subCategory =
|
|
2183
|
-
|
|
2181
|
+
contact_obj.mainCategory = business_category;
|
|
2182
|
+
contact_obj.subCategory = business_sub_category;
|
|
2183
|
+
contact_obj.business_size = business_size;
|
|
2184
2184
|
contact_obj.country = business_country;
|
|
2185
2185
|
|
|
2186
2186
|
// const { bio, country, mainCategory, subCategory } = account_info;
|
|
2187
2187
|
|
|
2188
|
-
const file_ret = await ai_module.get_profile_avatar(
|
|
2188
|
+
const file_ret = await ai_module.get_profile_avatar(
|
|
2189
|
+
profile_picture,
|
|
2190
|
+
uid,
|
|
2191
|
+
'',
|
|
2192
|
+
account_profile_info,
|
|
2193
|
+
contact_obj.account_type,
|
|
2194
|
+
'contact',
|
|
2195
|
+
contact_id,
|
|
2196
|
+
{ bio, country: contact_obj.country, mainCategory: contact_obj.mainCategory, subCategory: contact_obj.subCategory },
|
|
2197
|
+
business_size,
|
|
2198
|
+
contact_obj.name,
|
|
2199
|
+
contact_obj.email,
|
|
2200
|
+
job_id,
|
|
2201
|
+
headers,
|
|
2202
|
+
);
|
|
2189
2203
|
|
|
2190
2204
|
let { code: contact_code, data: contact_obj } = await db_module.get_couch_doc('xuda_accounts', account_uid);
|
|
2191
2205
|
|