@xuda.io/account_module 1.2.362 → 1.2.364

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.
Files changed (2) hide show
  1. package/index.mjs +4 -2
  2. 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' };
@@ -1254,7 +1254,7 @@ export const delete_contact = async function (req) {
1254
1254
  export const add_contact = async function (req, job_id, headers) {
1255
1255
  try {
1256
1256
  debugger;
1257
- const { uid, email, name, stat, contact_uid, req_id, context, source } = req;
1257
+ const { uid, email, name, stat, contact_uid, req_id, context, source, team_req_id } = req;
1258
1258
  const contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_email_address', { key: [uid, email] });
1259
1259
 
1260
1260
  if (contact_ret.rows.length) {
@@ -1288,6 +1288,7 @@ export const add_contact = async function (req, job_id, headers) {
1288
1288
  context,
1289
1289
  headers,
1290
1290
  source,
1291
+ team_req_id,
1291
1292
  };
1292
1293
  const ret = await db_module.save_couch_doc('xuda_contacts', doc);
1293
1294
 
@@ -1586,6 +1587,7 @@ export const get_user_name = async function (uid) {
1586
1587
  }
1587
1588
  };
1588
1589
 
1590
+ // TBD
1589
1591
  export const update_contacts_with_account_changes = async function (uid, changes = []) {
1590
1592
  try {
1591
1593
  if (!changes.length) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.362",
3
+ "version": "1.2.364",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {