@xuda.io/account_module 1.2.263 → 1.2.265

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 +4 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -115,6 +115,9 @@ export const update_account_info = async function (req, job_id, headers) {
115
115
 
116
116
  if (account_obj.account_info?.profile_picture) {
117
117
  await removeBg({ url: account_obj.account_info?.profile_picture }, job_id, headers);
118
+ } else {
119
+ const ai_module = await import(`${module_path}/ai_module/index.mjs`);
120
+ ai_module.update_thumbnail('contact', doc, app_id, uid, job_id, headers, 'xuda_contacts');
118
121
  }
119
122
 
120
123
  // temp remove later on
@@ -1551,6 +1554,7 @@ export const get_user_name = async function (uid) {
1551
1554
  };
1552
1555
 
1553
1556
  const removeBg = async function (req, job_id, headers) {
1557
+ debugger;
1554
1558
  const drive_module = await import(`${module_path}/drive_module/index.mjs`);
1555
1559
  const { url } = req;
1556
1560
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.263",
3
+ "version": "1.2.265",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {