@xuda.io/account_module 1.2.236 → 1.2.237
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 +4 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1202,11 +1202,10 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
1202
1202
|
const ret = await db_module.save_couch_doc('xuda_contacts', doc);
|
|
1203
1203
|
|
|
1204
1204
|
const app_id = await get_account_default_project_id(uid);
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1205
|
+
if (!profile_avatar) {
|
|
1206
|
+
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
1207
|
+
ai_module.update_thumbnail('contact', doc, app_id, uid, job_id, headers, 'xuda_contacts');
|
|
1208
|
+
}
|
|
1210
1209
|
return ret;
|
|
1211
1210
|
} catch (err) {
|
|
1212
1211
|
return { code: -1, data: err.message };
|