@xuda.io/account_module 1.2.1413 → 1.2.1415

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 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2064,7 +2064,8 @@ export const add_contact = async function (req, job_id, headers) {
2064
2064
  }
2065
2065
  };
2066
2066
 
2067
- const set_account_profile_picture = async function (uid, account_uid) {
2067
+ const set_account_profile_picture = async function (uid, account_uid, metadata) {
2068
+ const account_profile_info = await get_active_account_profile_info(uid);
2068
2069
  await update_account_profile_picture_status(account_uid, 1);
2069
2070
  try {
2070
2071
  let profile_picture;
@@ -2080,7 +2081,7 @@ const set_account_profile_picture = async function (uid, account_uid) {
2080
2081
 
2081
2082
  await update_account_profile_picture_status(account_uid, 2);
2082
2083
  if (!account_info.profile_picture) {
2083
- const file_ret = await ai_module.get_profile_picture(uid, account_info.account_type, name, { email, context, metadata, account_info }, account_profile_info, job_id, headers);
2084
+ const file_ret = await ai_module.get_profile_picture(uid, account_info.account_type, name, { email: account_info.email, metadata, account_info }, account_profile_info, job_id, headers);
2084
2085
 
2085
2086
  let { code: account_code, data: account_obj } = await db_module.get_couch_doc('xuda_accounts', account_uid);
2086
2087
  let account_info = account_obj.account_info;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1413",
3
+ "version": "1.2.1415",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {