@xuda.io/drive_module 1.1.1373 → 1.1.1375

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.mjs +4 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1673,8 +1673,10 @@ const get_folder_size = async (dir, drive_type, app_id, uid) => {
1673
1673
  };
1674
1674
  let ret;
1675
1675
  if (drive_type === 'user') {
1676
- opt.selector.uid = uid;
1677
- ret = await db_module.find_couch_query('xuda_drive', opt);
1676
+ // opt.selector.uid = uid;
1677
+ const account_module = await import(`${module_path}/account_module/index.mjs`);
1678
+ const app_id = await account_module.get_account_default_project_id(uid);
1679
+ ret = await db_module.find_app_couch_query(app_id, opt);
1678
1680
  } else {
1679
1681
  ret = await db_module.find_app_couch_query(app_id, opt);
1680
1682
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.1373",
3
+ "version": "1.1.1375",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {