@xuda.io/account_module 1.2.203 → 1.2.205

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 +5 -4
  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
 
@@ -1178,8 +1178,9 @@ export const add_contact = async function (req) {
1178
1178
  profile_picture,
1179
1179
  });
1180
1180
 
1181
- const ai_module = await import(`${module_path}/ai_module/index.mjs`);
1181
+ const {} = await get_account_default_project_id(uid);
1182
1182
 
1183
+ const ai_module = await import(`${module_path}/ai_module/index.mjs`);
1183
1184
  const images_arr = await ai_module.create_and_upload_image_to_drive('user', 'Profile Images', ret.id, prompt, 1, uid, app_id, job_id, headers);
1184
1185
 
1185
1186
  return ret;
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.205",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {