@xuda.io/account_module 1.2.772 → 1.2.774
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 +2 -13
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -149,7 +149,7 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
149
149
|
if (!change) {
|
|
150
150
|
return { code: 1300, data: 'no change' };
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
|
|
153
153
|
if (account_info_changes_arr.includes('profile_picture') || account_info_changes_arr.includes('profile_avatar_stat')) {
|
|
154
154
|
account_obj.account_info['profile_avatar'] = '';
|
|
155
155
|
}
|
|
@@ -1378,6 +1378,7 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
|
|
|
1378
1378
|
doc.state = account_info_ret.data.state;
|
|
1379
1379
|
doc.zip = account_info_ret.data.zip;
|
|
1380
1380
|
doc.account_type = account_info_ret.data.account_type;
|
|
1381
|
+
doc.email = doc.email?.[0];
|
|
1381
1382
|
} else {
|
|
1382
1383
|
doc.email = doc.email?.[0];
|
|
1383
1384
|
doc.emails = doc.email;
|
|
@@ -1510,18 +1511,6 @@ export const get_contacts = async function (req) {
|
|
|
1510
1511
|
docType: 'contact',
|
|
1511
1512
|
uid,
|
|
1512
1513
|
stat: { $lt: 4 },
|
|
1513
|
-
// $and: [
|
|
1514
|
-
// {
|
|
1515
|
-
// $or: [
|
|
1516
|
-
// {
|
|
1517
|
-
// uid,
|
|
1518
|
-
// },
|
|
1519
|
-
// {
|
|
1520
|
-
// contact_uid: uid,
|
|
1521
|
-
// },
|
|
1522
|
-
// ],
|
|
1523
|
-
// },
|
|
1524
|
-
// ],
|
|
1525
1514
|
},
|
|
1526
1515
|
limit: limit ? limit : 99999,
|
|
1527
1516
|
};
|