@xuda.io/account_module 1.2.339 → 1.2.341
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -153,6 +153,7 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
153
153
|
const ret2 = await db_module.save_couch_doc('xuda_accounts', account_obj);
|
|
154
154
|
|
|
155
155
|
update_contacts_with_account_changes(account_obj._id, account_info_changes_arr);
|
|
156
|
+
|
|
156
157
|
if (ret2.code > 0) {
|
|
157
158
|
return { code: 1300, data: 'ok' };
|
|
158
159
|
}
|
|
@@ -1191,7 +1192,7 @@ export const get_contacts = async function (req) {
|
|
|
1191
1192
|
code: 1,
|
|
1192
1193
|
data: {
|
|
1193
1194
|
docs: [
|
|
1194
|
-
...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, req_id: e._id })),
|
|
1195
1196
|
...requests_to_ret.docs.map((e) => ({
|
|
1196
1197
|
docType: 'contact',
|
|
1197
1198
|
date_created: e.team_req_date,
|
|
@@ -1200,6 +1201,7 @@ export const get_contacts = async function (req) {
|
|
|
1200
1201
|
profile_avatar: e.sender_account_info.profile_avatar || _conf.anonymous_image_url,
|
|
1201
1202
|
pending: true,
|
|
1202
1203
|
uid: e.team_req_from_uid,
|
|
1204
|
+
req_id: e._id,
|
|
1203
1205
|
})),
|
|
1204
1206
|
...contacts_ret.docs,
|
|
1205
1207
|
],
|