@xuda.io/drive_module 1.1.501 → 1.1.503
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 +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1865,7 +1865,7 @@ exports.get_drive_size = async function (req) {
|
|
|
1865
1865
|
// } else {
|
|
1866
1866
|
// ref = await _common.get_project_app_id(app_id, true);
|
|
1867
1867
|
// }
|
|
1868
|
-
|
|
1868
|
+
let app_id_master;
|
|
1869
1869
|
switch (drive_type) {
|
|
1870
1870
|
case "user":
|
|
1871
1871
|
break;
|
|
@@ -2024,10 +2024,10 @@ const get_folder_size = async function (dir, drive_type, app_id) {
|
|
|
2024
2024
|
}
|
|
2025
2025
|
};
|
|
2026
2026
|
|
|
2027
|
-
if (
|
|
2028
|
-
await calculateSizeFs(dir);
|
|
2029
|
-
} else {
|
|
2027
|
+
if (["user", "workspace.includes"].includes(drive_type)) {
|
|
2030
2028
|
await calculateSizeDocs(dir);
|
|
2029
|
+
} else {
|
|
2030
|
+
await calculateSizeFs(dir);
|
|
2031
2031
|
}
|
|
2032
2032
|
return totalSize;
|
|
2033
2033
|
};
|