@xuda.io/account_module 1.2.203 → 1.2.204

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 +3 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -854,7 +854,7 @@ export const search_users = async function (req) {
854
854
  }
855
855
  };
856
856
 
857
- export const read_emails = async function (req) {
857
+ export const read_emails = async function (req, job_id, headers) {
858
858
  const { uid, email_account_address, email_account_id, accessToken, vendor } = req;
859
859
 
860
860
  const email_module = await import(`${module_path}/email_module/index.mjs`);
@@ -930,7 +930,7 @@ export const read_emails = async function (req) {
930
930
  // uid,
931
931
  // });
932
932
  // }
933
- await add_contact({ uid, name, email });
933
+ await add_contact({ uid, name, email }, job_id, headers);
934
934
  }
935
935
  }
936
936
  };
@@ -1160,7 +1160,7 @@ export const delete_contact = async function (req) {
1160
1160
  // }
1161
1161
  // );
1162
1162
 
1163
- export const add_contact = async function (req) {
1163
+ export const add_contact = async function (req, job_id, headers) {
1164
1164
  const { uid, email, name, stat, contact_uid, req_id, profile_picture, context } = req;
1165
1165
  const contact_ret = await db_module.get_couch_view_raw('xuda_contacts', 'contacts_by_email_address', { key: [uid, email] });
1166
1166
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.203",
3
+ "version": "1.2.204",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {