@xuda.io/drive_module 1.1.465 → 1.1.466

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.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -516,8 +516,8 @@ exports.delete_drive_files = async function (req) {
516
516
 
517
517
  if (doc_ret.data.type === "file") {
518
518
  await module.exports.delete_file_from_bucket(doc_ret.data.bucket);
519
- } else {
520
- // folder
519
+ }
520
+ if (doc_ret.data.type === "directory") {
521
521
  const docs = await get_folder_docs(
522
522
  path.basename(file.path),
523
523
  drive_type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.465",
3
+ "version": "1.1.466",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {