@xuda.io/account_module 1.2.1424 → 1.2.1425
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 -32
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2178,40 +2178,11 @@ 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 = business_sub_category;
|
|
2182
|
+
contact_obj.subCategory = business_size;
|
|
2181
2183
|
|
|
2182
|
-
|
|
2183
|
-
// case 'free': {
|
|
2184
|
-
// business_size = 'unknown';
|
|
2185
|
-
// break;
|
|
2186
|
-
// }
|
|
2187
|
-
|
|
2188
|
-
// case 'pro': {
|
|
2189
|
-
// business_size = 'small';
|
|
2190
|
-
// break;
|
|
2191
|
-
// }
|
|
2192
|
-
|
|
2193
|
-
// case 'team': {
|
|
2194
|
-
// business_size = 'medium';
|
|
2195
|
-
// break;
|
|
2196
|
-
// }
|
|
2197
|
-
|
|
2198
|
-
// case 'agency': {
|
|
2199
|
-
// business_size = 'large';
|
|
2200
|
-
// break;
|
|
2201
|
-
// }
|
|
2202
|
-
// case 'enterprise_t1':
|
|
2203
|
-
// case 'enterprise_t2':
|
|
2204
|
-
// case 'enterprise_t3': {
|
|
2205
|
-
// business_size = 'enterprise';
|
|
2206
|
-
// break;
|
|
2207
|
-
// }
|
|
2208
|
-
|
|
2209
|
-
// default:
|
|
2210
|
-
// business_size = 'unknown';
|
|
2211
|
-
// break;
|
|
2212
|
-
// }
|
|
2184
|
+
contact_obj.country = business_country;
|
|
2213
2185
|
|
|
2214
|
-
// const name = account_info.account_type === 'business' ? account_info.business_name : account_info.full_name;
|
|
2215
2186
|
// const { bio, country, mainCategory, subCategory } = account_info;
|
|
2216
2187
|
|
|
2217
2188
|
const file_ret = await ai_module.get_profile_avatar(profile_picture, uid, '', account_profile_info, contact_obj.account_type, 'contact', contact_id, { bio, country, mainCategory, subCategory }, business_size, contact_obj.name, contact_obj.email, job_id, headers);
|