@xuda.io/account_module 1.2.1423 → 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.
Files changed (2) hide show
  1. package/index.mjs +4 -34
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2177,42 +2177,12 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
2177
2177
 
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
+ 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;
2180
2183
 
2181
- let business_size;
2182
-
2183
- // switch (account_obj.membership_plan) {
2184
- // case 'free': {
2185
- // business_size = 'unknown';
2186
- // break;
2187
- // }
2188
-
2189
- // case 'pro': {
2190
- // business_size = 'small';
2191
- // break;
2192
- // }
2193
-
2194
- // case 'team': {
2195
- // business_size = 'medium';
2196
- // break;
2197
- // }
2198
-
2199
- // case 'agency': {
2200
- // business_size = 'large';
2201
- // break;
2202
- // }
2203
- // case 'enterprise_t1':
2204
- // case 'enterprise_t2':
2205
- // case 'enterprise_t3': {
2206
- // business_size = 'enterprise';
2207
- // break;
2208
- // }
2209
-
2210
- // default:
2211
- // business_size = 'unknown';
2212
- // break;
2213
- // }
2184
+ contact_obj.country = business_country;
2214
2185
 
2215
- // const name = account_info.account_type === 'business' ? account_info.business_name : account_info.full_name;
2216
2186
  // const { bio, country, mainCategory, subCategory } = account_info;
2217
2187
 
2218
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1423",
3
+ "version": "1.2.1425",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {