@xuda.io/drive_module 1.1.523 → 1.1.524
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 +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -328,7 +328,9 @@ exports.get_drive_files = async function (req) {
|
|
|
328
328
|
|
|
329
329
|
if (tree?.children) {
|
|
330
330
|
if (type === "file") {
|
|
331
|
-
tree.children = tree.children
|
|
331
|
+
tree.children = tree.children
|
|
332
|
+
.filter((e) => e.type === type)
|
|
333
|
+
.slice(from, to + 1);
|
|
332
334
|
}
|
|
333
335
|
await drill(tree.children);
|
|
334
336
|
} else {
|