@xuda.io/account_module 1.2.282 → 1.2.283
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
|
@@ -1164,7 +1164,7 @@ export const get_contacts = async function (req) {
|
|
|
1164
1164
|
const contacts_ret = await db_module.find_couch_query('xuda_contacts', opt);
|
|
1165
1165
|
let requests_ret = { code: 1, data: { docs: [] } };
|
|
1166
1166
|
if (with_requests) {
|
|
1167
|
-
requests_ret = await db_module.find_couch_query('xuda_team', { selector: { docType: 'team_request', access_type: 'contact', team_req_stat: 2 } });
|
|
1167
|
+
requests_ret = await db_module.find_couch_query('xuda_team', { selector: { docType: 'team_request', access_type: 'contact', team_req_stat: 2, team_req_from_uid: uid } });
|
|
1168
1168
|
}
|
|
1169
1169
|
|
|
1170
1170
|
return { code: 1, data: { docs: [...contacts_ret.data.docs] } };
|