@xuda.io/account_module 1.2.387 → 1.2.389
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
|
@@ -1200,8 +1200,8 @@ export const get_contacts = async function (req) {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
|
|
1203
|
-
let requests_from = { docs: [] };
|
|
1204
1203
|
let requests_to = { docs: [] };
|
|
1204
|
+
let requests_from = { docs: [] };
|
|
1205
1205
|
|
|
1206
1206
|
if (with_requests) {
|
|
1207
1207
|
requests_to = await db_module.find_couch_query('xuda_team', {
|
|
@@ -1210,7 +1210,7 @@ export const get_contacts = async function (req) {
|
|
|
1210
1210
|
});
|
|
1211
1211
|
// 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'] });
|
|
1212
1212
|
}
|
|
1213
|
-
|
|
1213
|
+
// TO
|
|
1214
1214
|
for await (let doc of requests_to.docs) {
|
|
1215
1215
|
if (doc.contact_uid) {
|
|
1216
1216
|
const account_ret = await get_account_name({ uid_query: doc.contact_uid });
|