@xuda.io/account_module 1.2.352 → 1.2.354
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 +7 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1148,7 +1148,7 @@ export const get_contacts = async function (req) {
|
|
|
1148
1148
|
},
|
|
1149
1149
|
limit: limit ? limit : 99999,
|
|
1150
1150
|
};
|
|
1151
|
-
|
|
1151
|
+
debugger;
|
|
1152
1152
|
if (typeof name !== 'undefined') {
|
|
1153
1153
|
opt.selector.name = { $regex: `(?i)${name}` };
|
|
1154
1154
|
}
|
|
@@ -1305,6 +1305,12 @@ export const update_contact = async function (req) {
|
|
|
1305
1305
|
if (req_id) {
|
|
1306
1306
|
doc.req_id = req_id;
|
|
1307
1307
|
}
|
|
1308
|
+
|
|
1309
|
+
if (contact_uid) {
|
|
1310
|
+
const ret = await db_module.get_couch_doc('xuda_accounts', contact_uid);
|
|
1311
|
+
var account_obj = ret.data;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1308
1314
|
return await db_module.save_couch_doc('xuda_contacts', doc);
|
|
1309
1315
|
}
|
|
1310
1316
|
return { code: -1, data: 'contact not found' };
|