@xuda.io/account_module 1.2.476 → 1.2.477
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 +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1415,7 +1415,7 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1415
1415
|
const app_id = await get_account_default_project_id(uid);
|
|
1416
1416
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
1417
1417
|
if (account_info_ret?.data?.profile_avatar) {
|
|
1418
|
-
ai_module.convert_profile_image_to_avatar({ url:
|
|
1418
|
+
ai_module.convert_profile_image_to_avatar({ url: account_info_ret.data.profile_picture, uid, account_obj: { account_info: account_info_ret.data } }, job_id, headers);
|
|
1419
1419
|
} else {
|
|
1420
1420
|
// create factual avatar
|
|
1421
1421
|
ai_module.update_thumbnail('contact', doc, app_id, uid, job_id, headers, 'xuda_contacts', [email, doc._id, 'contact', app_id]);
|