@xuda.io/drive_module 1.1.508 → 1.1.509
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 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2020,14 +2020,11 @@ const get_folder_size = async function (dir, drive_type, app_id, uid) {
|
|
|
2020
2020
|
|
|
2021
2021
|
if (drive_type === "user") {
|
|
2022
2022
|
opt.selector.uid = uid;
|
|
2023
|
+
ret = await db_module.find_couch_query("xuda_drive", opt);
|
|
2023
2024
|
} else {
|
|
2024
2025
|
ret = await db_module.find_app_couch_query(app_id, opt);
|
|
2025
2026
|
}
|
|
2026
2027
|
|
|
2027
|
-
const ret =
|
|
2028
|
-
drive_type === "user"
|
|
2029
|
-
? await db_module.find_couch_query("xuda_drive", opt)
|
|
2030
|
-
: await db_module.find_app_couch_query(app_id, opt);
|
|
2031
2028
|
for await (let doc of ret.docs) {
|
|
2032
2029
|
if (doc.type === "directory") {
|
|
2033
2030
|
await calculateSizeDocs(path.join("/", doc._id));
|