@xuda.io/drive_module 1.1.522 → 1.1.523

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 +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1904,6 +1904,10 @@ exports.get_drive_size = async function (req) {
1904
1904
  }
1905
1905
 
1906
1906
  size = await get_folder_size(directoryPath, drive_type, app_id_master, uid);
1907
+ if (drive_type === "workspace") {
1908
+ // calc datacenter
1909
+ size += await get_folder_size(directoryPath, drive_type, app_id);
1910
+ }
1907
1911
 
1908
1912
  return { code: 200, data: size };
1909
1913
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.522",
3
+ "version": "1.1.523",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {