@xuda.io/account_module 1.2.363 → 1.2.365

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 +6 -5
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -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, 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) {
@@ -1282,12 +1282,13 @@ export const add_contact = async function (req, job_id, headers) {
1282
1282
  docType: 'contact',
1283
1283
  contact_uid,
1284
1284
  uid,
1285
- req_id,
1285
+
1286
1286
  profile_picture,
1287
1287
  profile_avatar,
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
 
@@ -1302,7 +1303,7 @@ export const add_contact = async function (req, job_id, headers) {
1302
1303
  }
1303
1304
  };
1304
1305
  export const update_contact = async function (req) {
1305
- const { uid, email, contact_uid, stat, req_id } = req;
1306
+ const { uid, email, contact_uid, stat, team_req_id } = req;
1306
1307
  var contact_ret;
1307
1308
  if (email) {
1308
1309
  contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_email_address', { key: [uid, email] });
@@ -1315,8 +1316,8 @@ export const update_contact = async function (req) {
1315
1316
  doc.stat = stat;
1316
1317
  doc.stat_ts = Date.now();
1317
1318
  }
1318
- if (req_id) {
1319
- doc.req_id = req_id;
1319
+ if (team_req_id) {
1320
+ doc.team_req_id = team_req_id;
1320
1321
  }
1321
1322
 
1322
1323
  if (contact_uid) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.363",
3
+ "version": "1.2.365",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {