@xuda.io/account_module 1.2.255 → 1.2.256
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.
- package/index.mjs +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1566,9 +1566,10 @@ const removeBg = async function (req, job_id, headers) {
|
|
|
1566
1566
|
|
|
1567
1567
|
// Convert to buffer and save
|
|
1568
1568
|
const outputBuffer = Buffer.from(await blob.arrayBuffer());
|
|
1569
|
+
|
|
1570
|
+
const originalname = path.basename(url);
|
|
1569
1571
|
const tempPath = path.join(os.tmpdir(), Date.now());
|
|
1570
1572
|
fs.writeFileSync(tempPath, outputBuffer);
|
|
1571
|
-
const originalname = path.basename(url);
|
|
1572
1573
|
const file_obj = {
|
|
1573
1574
|
originalname,
|
|
1574
1575
|
path: tempPath,
|