@xuda.io/account_module 1.2.1189 → 1.2.1191

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 +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -575,7 +575,7 @@ export const get_account_info = async function (req) {
575
575
 
576
576
  export const get_active_account_profile_info = async function (uid) {
577
577
  const acc_obj = await db_module.get_couch_doc_native('xuda_accounts', uid);
578
- debugger;
578
+
579
579
  // if (acc_obj.account_info.active_account_profile_id !== acc_obj.account_profile_id) {
580
580
  let active_account_profile_id = acc_obj.account_info.active_account_profile_id;
581
581
  // }
@@ -1925,6 +1925,7 @@ export const add_contact = async function (req, job_id, headers) {
1925
1925
  try {
1926
1926
  const { uid, email, name, stat, contact_uid, context, source, team_req_id, metadata = {} } = req;
1927
1927
  const contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_user_email_address', { key: [uid, email] });
1928
+ const account_profile_info = await account_module.get_active_account_profile_info(uid);
1928
1929
 
1929
1930
  if (contact_ret.rows.length) {
1930
1931
  throw new Error('contact already exist active or deleted');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1189",
3
+ "version": "1.2.1191",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {