@xuda.io/account_module 1.2.367 → 1.2.369

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
@@ -1261,15 +1261,15 @@ export const add_contact = async function (req, job_id, headers) {
1261
1261
  throw new Error('contact already exist active or deleted');
1262
1262
  }
1263
1263
 
1264
- let profile_picture;
1265
- let profile_avatar;
1264
+ // let profile_picture;
1265
+ // let profile_avatar;
1266
1266
  if (contact_uid) {
1267
1267
  const account_ret = await get_account_name({ uid_query: contact_uid });
1268
1268
  if (account_ret.code < 0) {
1269
1269
  throw new Error(`account ${contact_uid} not found`);
1270
1270
  }
1271
- profile_picture = account_ret.data.profile_picture;
1272
- profile_avatar = account_ret.data.profile_avatar;
1271
+ // profile_picture = account_ret.data.profile_picture;
1272
+ // profile_avatar = account_ret.data.profile_avatar;
1273
1273
  }
1274
1274
  const d = Date.now();
1275
1275
  const doc = {
@@ -1289,10 +1289,10 @@ export const add_contact = async function (req, job_id, headers) {
1289
1289
  };
1290
1290
  const ret = await db_module.save_couch_doc('xuda_contacts', doc);
1291
1291
 
1292
- if (!profile_avatar) {
1292
+ if (!account_ret.data.profile_avatar) {
1293
1293
  const app_id = await get_account_default_project_id(uid);
1294
1294
  const ai_module = await import(`${module_path}/ai_module/index.mjs`);
1295
- ai_module.update_thumbnail('contact', doc, app_id, uid, job_id, headers, 'xuda_contacts');
1295
+ ai_module.update_thumbnail('contact', doc, app_id, uid, job_id, headers, 'xuda_contacts', [email, doc._id, 'contact']);
1296
1296
  }
1297
1297
  return ret;
1298
1298
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.367",
3
+ "version": "1.2.369",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {