@xuda.io/account_module 1.2.403 → 1.2.404
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 +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1227,7 +1227,7 @@ export const get_contacts = async function (req) {
|
|
|
1227
1227
|
////// FROM
|
|
1228
1228
|
// requests_from = await db_module.find_couch_query('xuda_team', { selector: { docType: 'team_request', access_type: 'contact', team_req_stat: 2, team_req_from_uid: uid }, fields: ['_id', 'team_req_date', 'team_req_to_email', 'team_req_from_uid'] });
|
|
1229
1229
|
|
|
1230
|
-
const requests_from_res = await db_module.find_couch_query('xuda_team', { selector: { docType: 'team_request', access_type: 'contact', team_req_stat: 2,
|
|
1230
|
+
const requests_from_res = await db_module.find_couch_query('xuda_team', { selector: { docType: 'team_request', access_type: 'contact', team_req_stat: 2, team_req_to_uid: uid }, fields: ['_id', 'team_req_date', 'team_req_from_email', 'team_req_from_uid'] });
|
|
1231
1231
|
|
|
1232
1232
|
for await (let e of requests_from_res.docs) {
|
|
1233
1233
|
let doc = { docType: 'contact', date_created: e.team_req_date, email: [e.team_req_to_email], name: '', profile_avatar: _conf.anonymous_image_url, pending: true, contact_uid: e.team_req_to_uid, team_req_id: e._id };
|