@xuda.io/account_module 1.2.266 → 1.2.268

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 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -117,7 +117,8 @@ export const update_account_info = async function (req, job_id, headers) {
117
117
  await removeBg({ url: account_obj.account_info?.profile_picture }, job_id, headers);
118
118
  } else {
119
119
  const ai_module = await import(`${module_path}/ai_module/index.mjs`);
120
- ai_module.update_thumbnail('account', account_obj, account_obj.account_project_id, uid, job_id, headers, 'xuda_accounts');
120
+ const profile_avatar_ret = ai_module.update_thumbnail('account', account_obj, account_obj.account_project_id, uid, job_id, headers, 'xuda_accounts');
121
+ debugger;
121
122
  }
122
123
 
123
124
  // temp remove later on
@@ -1594,3 +1595,7 @@ const removeBg = async function (req, job_id, headers) {
1594
1595
  console.error('Error:', error);
1595
1596
  }
1596
1597
  };
1598
+
1599
+ // Step 1: Create a local assets folder (e.g., in your project root)
1600
+ const ASSET_PATH = path.join(process.cwd(), 'assets/imgly-bg'); // e.g., ./assets/imgly-bg
1601
+ fs.mkdirSync(ASSET_PATH, { recursive: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.266",
3
+ "version": "1.2.268",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {