@xuda.io/account_module 1.2.364 → 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.
- package/index.mjs +5 -5
- 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,
|
|
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,7 +1282,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1282
1282
|
docType: 'contact',
|
|
1283
1283
|
contact_uid,
|
|
1284
1284
|
uid,
|
|
1285
|
-
|
|
1285
|
+
|
|
1286
1286
|
profile_picture,
|
|
1287
1287
|
profile_avatar,
|
|
1288
1288
|
context,
|
|
@@ -1303,7 +1303,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
1305
|
export const update_contact = async function (req) {
|
|
1306
|
-
const { uid, email, contact_uid, stat,
|
|
1306
|
+
const { uid, email, contact_uid, stat, team_req_id } = req;
|
|
1307
1307
|
var contact_ret;
|
|
1308
1308
|
if (email) {
|
|
1309
1309
|
contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_email_address', { key: [uid, email] });
|
|
@@ -1316,8 +1316,8 @@ export const update_contact = async function (req) {
|
|
|
1316
1316
|
doc.stat = stat;
|
|
1317
1317
|
doc.stat_ts = Date.now();
|
|
1318
1318
|
}
|
|
1319
|
-
if (
|
|
1320
|
-
doc.
|
|
1319
|
+
if (team_req_id) {
|
|
1320
|
+
doc.team_req_id = team_req_id;
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
1323
|
if (contact_uid) {
|