@xuda.io/account_module 1.2.346 → 1.2.348
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 +3 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1187,12 +1187,12 @@ export const get_contacts = async function (req) {
|
|
|
1187
1187
|
fields: ['_id', 'team_req_date', 'team_req_to_email', 'sender_account_info.email', 'sender_account_info.first_name', 'sender_account_info.last_name', 'sender_account_info.profile_avatar', 'team_req_from_uid'],
|
|
1188
1188
|
});
|
|
1189
1189
|
}
|
|
1190
|
-
|
|
1190
|
+
|
|
1191
1191
|
return {
|
|
1192
1192
|
code: 1,
|
|
1193
1193
|
data: {
|
|
1194
1194
|
docs: [
|
|
1195
|
-
...requests_from_ret.docs.map((e) => ({ docType: 'contact', date_created: e.team_req_date, email: [e.team_req_to_email], name: '', profile_avatar: anonymous_image_url, pending: true, uid: e.team_req_from_uid,
|
|
1195
|
+
...requests_from_ret.docs.map((e) => ({ docType: 'contact', date_created: e.team_req_date, email: [e.team_req_to_email], name: '', profile_avatar: anonymous_image_url, pending: true, uid: e.team_req_from_uid, team_req_id: e._id })),
|
|
1196
1196
|
...requests_to_ret.docs.map((e) => ({
|
|
1197
1197
|
docType: 'contact',
|
|
1198
1198
|
date_created: e.team_req_date,
|
|
@@ -1201,7 +1201,7 @@ export const get_contacts = async function (req) {
|
|
|
1201
1201
|
profile_avatar: e.sender_account_info.profile_avatar || _conf.anonymous_image_url,
|
|
1202
1202
|
pending: true,
|
|
1203
1203
|
team_req_from_uid: e.team_req_from_uid,
|
|
1204
|
-
|
|
1204
|
+
team_req_id: e._id,
|
|
1205
1205
|
})),
|
|
1206
1206
|
...contacts_ret.docs,
|
|
1207
1207
|
],
|