@xuda.io/account_module 1.2.828 → 1.2.830
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 +9 -7
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -152,6 +152,7 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
152
152
|
if (!account_obj.account_info.full_name) {
|
|
153
153
|
account_obj.account_info.full_name = `${account_obj.account_info.first_name} ${account_obj.account_info.last_name}`;
|
|
154
154
|
}
|
|
155
|
+
|
|
155
156
|
if (account_info_changes_arr.includes('profile_picture') || account_info_changes_arr.includes('profile_avatar_stat')) {
|
|
156
157
|
account_obj.account_info['profile_avatar'] = '';
|
|
157
158
|
}
|
|
@@ -883,15 +884,15 @@ export const search_users = async function (req) {
|
|
|
883
884
|
...selector,
|
|
884
885
|
$or: [
|
|
885
886
|
{
|
|
886
|
-
'account_info.
|
|
887
|
-
$regex: `(?i)${search}`,
|
|
888
|
-
},
|
|
889
|
-
},
|
|
890
|
-
{
|
|
891
|
-
'account_info.last_name': {
|
|
887
|
+
'account_info.full_name': {
|
|
892
888
|
$regex: `(?i)${search}`,
|
|
893
889
|
},
|
|
894
890
|
},
|
|
891
|
+
// {
|
|
892
|
+
// 'account_info.last_name': {
|
|
893
|
+
// $regex: `(?i)${search}`,
|
|
894
|
+
// },
|
|
895
|
+
// },
|
|
895
896
|
{
|
|
896
897
|
'account_info.business_name': {
|
|
897
898
|
$regex: `(?i)${search}`,
|
|
@@ -2243,7 +2244,8 @@ export const onboarding_completed = async function (req, job_id, headers) {
|
|
|
2243
2244
|
}
|
|
2244
2245
|
}
|
|
2245
2246
|
|
|
2246
|
-
account_doc.
|
|
2247
|
+
account_doc.boarded_info = { headers, date_ts: Date.now() };
|
|
2248
|
+
account_doc.boarded = true;
|
|
2247
2249
|
const save_ret = await db_module.save_couch_doc('xuda_accounts', account_doc);
|
|
2248
2250
|
return save_ret;
|
|
2249
2251
|
} catch (err) {
|