@xuda.io/account_module 1.2.1420 → 1.2.1422
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 +29 -27
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2173,40 +2173,42 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
|
|
|
2173
2173
|
profile_picture = contact_obj.profile_picture;
|
|
2174
2174
|
}
|
|
2175
2175
|
|
|
2176
|
+
// get business info
|
|
2177
|
+
|
|
2176
2178
|
if (!contact_obj.profile_avatar) {
|
|
2177
2179
|
let business_size;
|
|
2178
2180
|
|
|
2179
|
-
switch (account_obj.membership_plan) {
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2181
|
+
// switch (account_obj.membership_plan) {
|
|
2182
|
+
// case 'free': {
|
|
2183
|
+
// business_size = 'unknown';
|
|
2184
|
+
// break;
|
|
2185
|
+
// }
|
|
2184
2186
|
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2187
|
+
// case 'pro': {
|
|
2188
|
+
// business_size = 'small';
|
|
2189
|
+
// break;
|
|
2190
|
+
// }
|
|
2189
2191
|
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2192
|
+
// case 'team': {
|
|
2193
|
+
// business_size = 'medium';
|
|
2194
|
+
// break;
|
|
2195
|
+
// }
|
|
2194
2196
|
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2197
|
+
// case 'agency': {
|
|
2198
|
+
// business_size = 'large';
|
|
2199
|
+
// break;
|
|
2200
|
+
// }
|
|
2201
|
+
// case 'enterprise_t1':
|
|
2202
|
+
// case 'enterprise_t2':
|
|
2203
|
+
// case 'enterprise_t3': {
|
|
2204
|
+
// business_size = 'enterprise';
|
|
2205
|
+
// break;
|
|
2206
|
+
// }
|
|
2205
2207
|
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
}
|
|
2208
|
+
// default:
|
|
2209
|
+
// business_size = 'unknown';
|
|
2210
|
+
// break;
|
|
2211
|
+
// }
|
|
2210
2212
|
|
|
2211
2213
|
// const name = account_info.account_type === 'business' ? account_info.business_name : account_info.full_name;
|
|
2212
2214
|
// const { bio, country, mainCategory, subCategory } = account_info;
|