@xuda.io/account_module 1.2.474 → 1.2.475
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 +5 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1414,7 +1414,11 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1414
1414
|
if (!account_ret?.data?.profile_avatar) {
|
|
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_ret?.data?.profile_avatar) {
|
|
1418
|
+
} else {
|
|
1419
|
+
// create factual avatar
|
|
1420
|
+
ai_module.update_thumbnail('contact', doc, app_id, uid, job_id, headers, 'xuda_contacts', [email, doc._id, 'contact', app_id]);
|
|
1421
|
+
}
|
|
1418
1422
|
}
|
|
1419
1423
|
return ret;
|
|
1420
1424
|
} catch (err) {
|