@xuda.io/account_module 1.2.1289 → 1.2.1290
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
|
@@ -2211,7 +2211,7 @@ export const get_contacts = async function (req) {
|
|
|
2211
2211
|
var opt = {
|
|
2212
2212
|
selector: {
|
|
2213
2213
|
docType: 'contact',
|
|
2214
|
-
uid: account_profile_info.uid,
|
|
2214
|
+
// uid: account_profile_info.uid,
|
|
2215
2215
|
stat: { $lt: 4 },
|
|
2216
2216
|
},
|
|
2217
2217
|
limit: limit || 9999,
|
|
@@ -2278,7 +2278,7 @@ export const get_contacts = async function (req) {
|
|
|
2278
2278
|
let contacts = { docs: [], total_docs: 0 };
|
|
2279
2279
|
|
|
2280
2280
|
if (filter_type !== 'pending') {
|
|
2281
|
-
contacts = await
|
|
2281
|
+
contacts = await find_contact_query(account_profile_info.uid, opt);
|
|
2282
2282
|
if (!limit || contact_id) {
|
|
2283
2283
|
contacts.total_docs = contacts.docs.length;
|
|
2284
2284
|
} else {
|
|
@@ -2287,7 +2287,7 @@ export const get_contacts = async function (req) {
|
|
|
2287
2287
|
opt.limit = 9999;
|
|
2288
2288
|
opt.fields = ['_id'];
|
|
2289
2289
|
|
|
2290
|
-
const counter = await
|
|
2290
|
+
const counter = await find_contact_query(account_profile_info.uid, opt);
|
|
2291
2291
|
contacts.total_docs = counter.docs.length;
|
|
2292
2292
|
}
|
|
2293
2293
|
}
|