@xuda.io/drive_module 1.1.521 → 1.1.522
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.js +1 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1881,7 +1881,6 @@ exports.get_drive_size = async function (req) {
|
|
|
1881
1881
|
// ref = await _common.get_project_app_id(app_id, true);
|
|
1882
1882
|
// }
|
|
1883
1883
|
|
|
1884
|
-
debugger;
|
|
1885
1884
|
let app_id_master, directoryPath;
|
|
1886
1885
|
switch (drive_type) {
|
|
1887
1886
|
case "user":
|
|
@@ -2046,7 +2045,7 @@ const get_folder_size = async function (dir, drive_type, app_id, uid) {
|
|
|
2046
2045
|
if (doc.type === "directory") {
|
|
2047
2046
|
await calculateSizeDocs(path.join("/", doc._id));
|
|
2048
2047
|
} else {
|
|
2049
|
-
totalSize += doc.size;
|
|
2048
|
+
totalSize += doc.size || 0;
|
|
2050
2049
|
}
|
|
2051
2050
|
}
|
|
2052
2051
|
};
|