@xuda.io/drive_module 1.1.910 → 1.1.911

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 +4 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -98,7 +98,10 @@ exports.get_drive_files = async function (req) {
98
98
 
99
99
  let { tags = [] } = req;
100
100
  let tags_query = {};
101
- const sort_by_obj = { name: "originalname", date: "date_created" };
101
+ const sort_by_obj = {
102
+ name: type === "file" ? "originalname" : "folder_name",
103
+ date: "date_created",
104
+ };
102
105
 
103
106
  try {
104
107
  let opt = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.910",
3
+ "version": "1.1.911",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {