@xuda.io/account_module 1.2.236 → 1.2.238

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 +6 -6
  2. 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
- const ai_module = await import(`${module_path}/ai_module/index.mjs`);
1207
-
1208
- ai_module.update_thumbnail('contact', doc, app_id, uid, job_id, headers, 'xuda_contacts');
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 };
@@ -1508,7 +1507,8 @@ setTimeout(async () => {
1508
1507
 
1509
1508
  // // console.log(await get_contact({ uid, name: "bo" }));
1510
1509
 
1511
- let ret = await add_contact({ uid: 'd39126e0e2c51ffbd1aad10709fc8335', name: 'Boaz Avrahami', email: 'bocabo67@gmail.com', context: {} }, null, { 'accept-language': 'en-US,en;q=0.9,he;q=0.8' });
1510
+ let ret;
1511
+ // ret = await add_contact({ uid: 'd39126e0e2c51ffbd1aad10709fc8335', name: 'Boaz Avrahami', email: 'bocabo67@gmail.com', context: {} }, null, { 'accept-language': 'en-US,en;q=0.9,he;q=0.8' });
1512
1512
  console.log(ret);
1513
1513
  }, 2000);
1514
1514
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.236",
3
+ "version": "1.2.238",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {