@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.
- package/index.js +4 -1
- 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 = {
|
|
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 = {
|