@xuda.io/account_module 1.2.1433 → 1.2.1435

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 +10 -9
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -191,15 +191,15 @@ export const update_account_info = async function (req, job_id, headers) {
191
191
  // await drive_module.create_drive_folder_user({ ...drive_req, ...{ folder_name: 'Chat Attachments', is_system: true } }, job_id, headers);
192
192
 
193
193
  const save_ret = await db_module.save_couch_doc('xuda_accounts', account_obj);
194
- debugger;
194
+
195
195
  const ai_module = await import(`${module_path}/ai_module/index.mjs`);
196
- if (account_obj.account_info?.profile_picture) {
197
- if (!account_obj.account_info?.profile_avatar) {
198
- ai_module.get_profile_avatar({ url: account_obj.account_info?.profile_picture, uid, account_obj, account_profile_info }, job_id, headers);
199
- }
200
- } else {
201
- ai_module.update_thumbnail('account', account_obj, account_obj.account_project_id, uid, job_id, headers, 'xuda_accounts');
202
- }
196
+ // if (account_obj.account_info?.profile_picture) {
197
+ // if (!account_obj.account_info?.profile_avatar) {
198
+ // ai_module.get_profile_avatar({ url: account_obj.account_info?.profile_picture, uid, account_obj, account_profile_info }, job_id, headers);
199
+ // }
200
+ // } else {
201
+ // ai_module.update_thumbnail('account', account_obj, account_obj.account_project_id, uid, job_id, headers, 'xuda_accounts');
202
+ // }
203
203
 
204
204
  // update_contacts_with_account_changes(account_obj._id, account_info_changes_arr);
205
205
 
@@ -2152,8 +2152,9 @@ const set_account_profile_picture = async function (uid, account_uid, metadata,
2152
2152
  };
2153
2153
 
2154
2154
  const set_contact_profile_picture = async function (uid, contact_id, metadata, job_id, headers) {
2155
+ const ai_module = await import(`${module_path}/ai_module/index.mjs`);
2155
2156
  const account_profile_info = await get_active_account_profile_info(uid);
2156
- debugger;
2157
+
2157
2158
  await update_contact_profile_picture_status(uid, contact_id, 1);
2158
2159
  try {
2159
2160
  let profile_picture;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1433",
3
+ "version": "1.2.1435",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {