@xuda.io/drive_module 1.1.1343 → 1.1.1345
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 +1 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -473,7 +473,6 @@ const get_folder_files = async function (uid, app_id, drive_type, path) {
|
|
|
473
473
|
};
|
|
474
474
|
|
|
475
475
|
export const delete_drive_files = async (req, job_id, headers) => {
|
|
476
|
-
debugger;
|
|
477
476
|
try {
|
|
478
477
|
const { drive_type, app_id, files_arr, uid } = req;
|
|
479
478
|
validate_drive_type(drive_type);
|
|
@@ -1710,7 +1709,7 @@ export const delete_file_from_bucket = async (bucket) => {
|
|
|
1710
1709
|
|
|
1711
1710
|
try {
|
|
1712
1711
|
for await (let [key, val] of Object.entries(bucket)) {
|
|
1713
|
-
await s3.send(new DeleteObjectCommand({ Bucket:
|
|
1712
|
+
await s3.send(new DeleteObjectCommand({ Bucket: val.Bucket, Key: val.key || val.Key }));
|
|
1714
1713
|
}
|
|
1715
1714
|
} catch (err) {
|
|
1716
1715
|
console.error('Error', err);
|