@xuda.io/drive_module 1.1.485 → 1.1.487
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 +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -140,7 +140,7 @@ exports.get_drive_files = async function (req) {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
files.size = formatBytes(files.
|
|
143
|
+
files.size = formatBytes(files.sizeInBytes);
|
|
144
144
|
return { code: 1, data: files };
|
|
145
145
|
};
|
|
146
146
|
const get_user_files = async function () {
|
|
@@ -174,7 +174,7 @@ exports.get_drive_files = async function (req) {
|
|
|
174
174
|
};
|
|
175
175
|
|
|
176
176
|
for await (let doc of ret.docs) {
|
|
177
|
-
const file_path = path.join(_conf[`user_drive_path`], uid, doc._id);
|
|
177
|
+
// const file_path = path.join(_conf[`user_drive_path`], uid, doc._id);
|
|
178
178
|
if (doc.type === "file") {
|
|
179
179
|
try {
|
|
180
180
|
files.sizeInBytes += doc.size;
|