@xuda.io/account_module 1.2.257 → 1.2.259

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 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1570,6 +1570,9 @@ const removeBg = async function (req, job_id, headers) {
1570
1570
  const originalname = path.basename(url);
1571
1571
  const tempPath = path.join(os.tmpdir(), originalname + Date.now());
1572
1572
  fs.writeFileSync(tempPath, outputBuffer);
1573
+
1574
+ const ext = drive_module.getExtensionFromUrl(url);
1575
+
1573
1576
  const file_obj = {
1574
1577
  originalname,
1575
1578
  path: tempPath,
@@ -1577,7 +1580,7 @@ const removeBg = async function (req, job_id, headers) {
1577
1580
  };
1578
1581
 
1579
1582
  const drive_ret = await drive_module.upload_drive_file_user({ uid, path: '/Profile Images' }, job_id, headers, file_obj);
1580
- console.log(`Background removed! Saved to ${outputPath}`);
1583
+ console.log(`Background removed! `, drive_ret);
1581
1584
  } catch (error) {
1582
1585
  console.error('Error:', error);
1583
1586
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.257",
3
+ "version": "1.2.259",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {