@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.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. 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.slice(from, to + 1);
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.523",
3
+ "version": "1.1.524",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {