@xuda.io/account_module 1.2.385 → 1.2.386
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1215,7 +1215,8 @@ export const get_contacts = async function (req) {
|
|
|
1215
1215
|
code: 1,
|
|
1216
1216
|
data: {
|
|
1217
1217
|
docs: [
|
|
1218
|
-
...requests_to.docs.map((e) => ({
|
|
1218
|
+
...requests_to.docs.map((e) => ({ docType: 'contact', date_created: e.team_req_date, email: [e.team_req_to_email], name: '', profile_avatar: _conf.anonymous_image_url, pending: true, uid: e.team_req_from_uid, team_req_id: e._id })),
|
|
1219
|
+
...requests_from.docs.map((e) => ({
|
|
1219
1220
|
docType: 'contact',
|
|
1220
1221
|
date_created: e.team_req_date,
|
|
1221
1222
|
email: [e.sender_account_info.email],
|
|
@@ -1225,7 +1226,6 @@ export const get_contacts = async function (req) {
|
|
|
1225
1226
|
team_req_from_uid: e.team_req_from_uid,
|
|
1226
1227
|
team_req_id: e._id,
|
|
1227
1228
|
})),
|
|
1228
|
-
...requests_from.docs.map((e) => ({ docType: 'contact', date_created: e.team_req_date, email: [e.team_req_to_email], name: '', profile_avatar: _conf.anonymous_image_url, pending: true, uid: e.team_req_from_uid, team_req_id: e._id })),
|
|
1229
1229
|
...contacts.docs,
|
|
1230
1230
|
],
|
|
1231
1231
|
},
|