@xuda.io/account_module 1.2.261 → 1.2.263

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 +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -114,7 +114,7 @@ export const update_account_info = async function (req, job_id, headers) {
114
114
  }
115
115
 
116
116
  if (account_obj.account_info?.profile_picture) {
117
- removeBg({ url: account_obj.account_info?.profile_picture }, job_id, headers);
117
+ await removeBg({ url: account_obj.account_info?.profile_picture }, job_id, headers);
118
118
  }
119
119
 
120
120
  // temp remove later on
@@ -1551,6 +1551,7 @@ export const get_user_name = async function (uid) {
1551
1551
  };
1552
1552
 
1553
1553
  const removeBg = async function (req, job_id, headers) {
1554
+ const drive_module = await import(`${module_path}/drive_module/index.mjs`);
1554
1555
  const { url } = req;
1555
1556
  try {
1556
1557
  let imageBuffer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.261",
3
+ "version": "1.2.263",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {