@xuda.io/account_module 1.2.361 → 1.2.363
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 +15 -14
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -152,7 +152,7 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
152
152
|
|
|
153
153
|
const ret2 = await db_module.save_couch_doc('xuda_accounts', account_obj);
|
|
154
154
|
|
|
155
|
-
update_contacts_with_account_changes(account_obj._id, account_info_changes_arr);
|
|
155
|
+
// update_contacts_with_account_changes(account_obj._id, account_info_changes_arr);
|
|
156
156
|
|
|
157
157
|
if (ret2.code > 0) {
|
|
158
158
|
return { code: 1300, data: 'ok' };
|
|
@@ -1144,20 +1144,20 @@ export const get_contacts = async function (req) {
|
|
|
1144
1144
|
var opt = {
|
|
1145
1145
|
selector: {
|
|
1146
1146
|
docType: 'contact',
|
|
1147
|
-
|
|
1147
|
+
uid,
|
|
1148
1148
|
stat: { $lt: 4 },
|
|
1149
|
-
$and: [
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
],
|
|
1149
|
+
// $and: [
|
|
1150
|
+
// {
|
|
1151
|
+
// $or: [
|
|
1152
|
+
// {
|
|
1153
|
+
// uid,
|
|
1154
|
+
// },
|
|
1155
|
+
// {
|
|
1156
|
+
// contact_uid: uid,
|
|
1157
|
+
// },
|
|
1158
|
+
// ],
|
|
1159
|
+
// },
|
|
1160
|
+
// ],
|
|
1161
1161
|
},
|
|
1162
1162
|
limit: limit ? limit : 99999,
|
|
1163
1163
|
};
|
|
@@ -1586,6 +1586,7 @@ export const get_user_name = async function (uid) {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
};
|
|
1588
1588
|
|
|
1589
|
+
// TBD
|
|
1589
1590
|
export const update_contacts_with_account_changes = async function (uid, changes = []) {
|
|
1590
1591
|
try {
|
|
1591
1592
|
if (!changes.length) return;
|